-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
111 lines (96 loc) · 4.08 KB
/
build.gradle
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
ext {
kotlinVersion = "1.1.2-4"
jacksonModuleKotlinVersion = "2.8.8"
springBootVersion = "2.0.0.M1"
gsonVersion = "2.8.0"
junitVersion = "4.12"
junitJupiteVersion = "5.0.0-M4"
junitPlatformVersion = "1.0.0-M4"
junitVintageVersion = "4.12.0-M4"
spekVersion = "1.1.1"
restAssuredVersion = "3.0.3"
hamcrestVersion = "1.3"
hamkrestVersion = "1.4.0.0"
reactorKotlinExtensions = "1.0.0.M2"
hsqldbVersion = "2.4.0"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
}
}
apply plugin: "idea"
apply plugin: "kotlin"
//apply plugin: "kotlin-spring"
apply plugin: "application"
apply plugin: "kotlin-jpa"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
springBoot {
mainClassName = 'com.elementalsource.kotlinapi.AppKt'
applicationName = "kotlin-api"
}
jar {
baseName = "kotlin-api"
version = "1.0.0-SNAPSHOT"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
sourceSets {
main.kotlin.srcDirs += "src/main/kotlin"
test.kotlin.srcDirs += "src/test/kotlin"
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-runtime:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
//compile("org.springframework.boot:spring-boot-starter:$springBootVersion")
//compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
//compile("org.springframework.boot:spring-boot-starter-undertow:$springBootVersion")
//compile("org.springframework.boot:spring-boot-starter-data-rest:$springBootVersion")
compile("org.springframework.boot:spring-boot-starter-webflux:$springBootVersion")
//compile("org.springframework.boot:spring-boot-starter-data-jpa:$springBootVersion")
//compile("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
compile("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonModuleKotlinVersion")
compile("com.google.code.gson:gson:$gsonVersion")
compile("org.hsqldb:hsqldb:$hsqldbVersion")
compile("io.projectreactor:reactor-kotlin-extensions:$reactorKotlinExtensions")
testCompile("org.jetbrains.spek:spek-api:$spekVersion")
testCompile("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion")
testCompile("org.junit.jupiter:junit-jupiter-api:$junitJupiteVersion")
testCompile("junit:junit:$junitVersion")
testCompile("org.junit.platform:junit-platform-runner:$junitPlatformVersion")
testCompile("io.rest-assured:rest-assured:$restAssuredVersion")
testCompile("io.rest-assured:json-path:$restAssuredVersion")
testCompile("io.rest-assured:json-schema-validator:$restAssuredVersion")
testCompile("org.hamcrest:hamcrest-all:$hamcrestVersion")
testCompile("com.natpryce:hamkrest:$hamkrestVersion")
testCompile("io.projectreactor.addons:reactor-test")
testCompile("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
testCompile("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
testCompile("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
}