-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
84 lines (71 loc) · 2.32 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
plugins {
java
kotlin("jvm") version "1.3.40"
kotlin("plugin.spring") version "1.3.40"
// Don't apply the plugin only when explicitly asked
id("org.springframework.boot") version "2.1.6.RELEASE"
id("com.google.cloud.tools.jib") version "1.4.0"
}
version = "1.0"
group = "com.github.vlsi.nexusstub"
repositories {
jcenter()
}
jib {
container {
jvmFlags = listOf("-Xms128m")
mainClass = "com.github.vlsi.nexusstub.ApplicationKt"
args = listOf()
ports = listOf("8080/tcp")
}
to {
image = "vlsi/nexus-stub"
tags = if (findProperty("release") != null) setOf("latest", "v$version") else setOf("latest")
auth {
username = findProperty("docker.username").toString()
password = findProperty("docker.password").toString()
}
}
}
dependencies {
compile(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
compile(kotlin("reflect"))
compile(kotlin("stdlib"))
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework:spring-tx")
compile("javax.annotation:javax.annotation-api")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("org.jetbrains.xodus:xodus-openAPI:1.3.0")
compile("org.jetbrains.xodus:xodus-environment:1.3.0")
compile("org.jetbrains.xodus:xodus-entity-store:1.3.0")
compile("org.jetbrains.xodus:xodus-vfs:1.3.0")
compile("org.jetbrains.xodus:dnq:1.3.424")
runtime("ch.qos.logback:logback-classic")
runtime("com.fasterxml.jackson.module:jackson-module-kotlin")
testCompile("org.junit.jupiter:junit-jupiter-api")
testCompile("org.jetbrains.spek:spek-api:1.1.5")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
testRuntime("org.jetbrains.spek:spek-junit-platform-engine:1.1.5")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
// use JUnit 5 platform
tasks.test {
useJUnitPlatform()
}
tasks.test {
useJUnitPlatform()
}
tasks.compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
//Will retain parameter names for Java reflection
javaParameters = true
}
}
tasks.compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
javaParameters = true
}
}