-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
38 lines (31 loc) · 1.36 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
// https://kotlinlang.org/docs/reference/using-gradle.html
// http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.jetbrains.kotlin%22%20AND%20a%3A%22kotlin-gradle-plugin%22
// https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-gradle-plugin.html
plugins {
id "org.jetbrains.kotlin.jvm" version "1.1.2-2"
id 'org.springframework.boot' version '1.5.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
// Starting with Kotlin 1.1.2, the dependencies with group org.jetbrains.kotlin
// are by default resolved with the version taken from the applied plugin.
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8"
// The spring-boot plugin automatically applies the Dependency Management Plugin
// and configures it to import the spring-boot-starter-parent bom.
// It allows you to omit version numbers when declaring dependencies that are managed in the bom.
compile 'org.springframework.boot:spring-boot-starter-web'
}
springBoot {
mainClass = 'com.tratzlaff.example.ApplicationKt'
}
// The corresponding sourceSets property should be updated if not using the default convention
sourceSets {
//main.kotlin.srcDirs += 'src/main/kotlin'
//main.java.srcDirs += 'src/main/java'
}
// https://docs.gradle.org/current/userguide/gradle_wrapper.html
task wrapper(type: Wrapper) {
gradleVersion = "3.5"
}