mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-19 01:58:16 +08:00

This commit refactors the existing Groovy DSL writers in order to share code between the Groovy DSL and Kotlin DSL writers. See gh-851
31 lines
784 B
Plaintext
31 lines
784 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("org.springframework.boot") version "2.1.1.RELEASE"
|
|
id("io.spring.dependency-management") version "1.0.6.RELEASE"
|
|
kotlin("jvm") version "1.1.1"
|
|
kotlin("plugin.spring") version "1.1.1"
|
|
}
|
|
|
|
group = "com.example"
|
|
version = "0.0.1-SNAPSHOT"
|
|
java.sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|