67 lines
1.8 KiB
Groovy
67 lines
1.8 KiB
Groovy
buildscript {
|
|
ext {
|
|
kotlinVersion = '1.2.41'
|
|
springBootVersion = '2.0.1.RELEASE'
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
|
|
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
|
|
classpath("org.jetbrains.kotlin:kotlin-noarg:${kotlinVersion}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'kotlin-spring'
|
|
apply plugin: 'kotlin-jpa'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
group = 'com.example'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = 1.8
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
dependencies {
|
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
|
compile('org.springframework.boot:spring-boot-starter-mustache')
|
|
compile('com.fasterxml.jackson.module:jackson-module-kotlin')
|
|
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
compile("org.jetbrains.kotlin:kotlin-reflect")
|
|
compile("com.atlassian.commonmark:commonmark:0.11.0")
|
|
compile("com.atlassian.commonmark:commonmark-ext-autolink:0.11.0")
|
|
runtime("com.h2database:h2")
|
|
kapt("org.springframework.boot:spring-boot-configuration-processor")
|
|
testCompile('org.springframework.boot:spring-boot-starter-test') {
|
|
exclude module: 'junit'
|
|
}
|
|
testCompile("com.nhaarman:mockito-kotlin:1.5.0")
|
|
testImplementation('org.junit.jupiter:junit-jupiter-api')
|
|
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')
|
|
}
|