This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
91 lines (77 loc) · 3.36 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
plugins {
kotlin("jvm") version "1.7.10"
id("no.skatteetaten.gradle.aurora") version "4.5.6"
id("io.gatling.gradle") version "3.8.4"
id("org.asciidoctor.jvm.convert") version "3.3.2"
}
aurora {
useKotlinDefaults
useSpringBootDefaults
useSpringBoot {
useWebFlux
useCloudContract
}
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions:1.1.7")
implementation("org.apache.commons:commons-text:1.10.0")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.expediagroup:graphql-kotlin-spring-server:6.2.5")
// bump transitive dependency because of high security risk in version 61.1
implementation("com.ibm.icu:icu4j:71.1")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("com.github.ben-manes.caffeine:caffeine:3.1.1")
implementation("org.postgresql:postgresql:42.5.0")
implementation("org.flywaydb:flyway-core")
implementation("uk.q3c.rest:hal-kotlin:0.5.4.0.db32476") {
exclude(group = "com.google.guava", module = "guava")
}
implementation("com.jayway.jsonpath:json-path:2.7.0")
implementation("io.projectreactor.addons:reactor-extra:3.4.8")
implementation("no.skatteetaten.aurora.kubernetes:kubernetes-reactor-coroutines-client:1.3.32")
implementation("no.skatteetaten.aurora.springboot:aurora-spring-security-starter:1.19.0")
testImplementation("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("io.mockk:mockk:1.13.2")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
testImplementation("io.projectreactor:reactor-test")
testImplementation("no.skatteetaten.aurora:mockwebserver-extensions-kotlin:1.3.1") {
exclude(group = "no.skatteetaten.aurora.springboot", module = "aurora-spring-boot-mvc-starter")
}
testImplementation("com.ninja-squad:springmockk:3.1.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
testImplementation("org.awaitility:awaitility:4.2.0")
testImplementation("io.kubernetes:client-java:16.0.0")
}
task<de.undercouch.gradle.tasks.download.Download>("download-playground") {
val baseUrl = "https://cdn.jsdelivr.net/npm/graphql-playground-react/build"
src(
listOf(
"$baseUrl/static/js/middleware.js",
"$baseUrl/static/css/index.css",
"$baseUrl/favicon.png",
"$baseUrl/logo.png"
)
)
dest("src/main/resources/static/playground/")
onlyIfModified(true)
}
repositories {
mavenCentral()
}
tasks {
named<org.asciidoctor.gradle.jvm.AsciidoctorTask>("asciidoctor") {
sourceDir("src/main/asciidoc")
setBaseDir("src/test/resources/graphql")
logDocuments = true
}
}
task<JavaExec>("runLocal") {
mainClass.set("no.skatteetaten.aurora.gobo.GoboTestMainKt")
classpath(sourceSets["test"].runtimeClasspath, sourceSets["main"].runtimeClasspath)
}