forked from sdeleuze/spring-boot-kotlin-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (50 loc) · 1.55 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
maven("https://repo.spring.io/milestone")
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M7")
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.2")
}
}
apply {
plugin("org.springframework.boot")
plugin("org.junit.platform.gradle.plugin")
}
plugins {
val kotlinVersion = "1.1.61"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
id("io.spring.dependency-management") version "1.0.3.RELEASE"
}
version = "1.0.0-SNAPSHOT"
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
}
repositories {
mavenCentral()
maven("http://repo.spring.io/milestone")
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.jetbrains.kotlin:kotlin-stdlib")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile ("io.micrometer:micrometer-registry-statsd")
compile("com.fasterxml.jackson.module:jackson-module-kotlin")
compile("com.h2database:h2")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
testCompile("org.junit.jupiter:junit-jupiter-api")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
}