mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-20 18:48:13 +08:00
Fix freeCompilerArgs
definition in Gradle build
Closes gh-593
This commit is contained in:
@@ -48,12 +48,16 @@ group = '{{groupId}}'
|
|||||||
version = '{{version}}'
|
version = '{{version}}'
|
||||||
sourceCompatibility = {{javaVersion}}{{#kotlin}}
|
sourceCompatibility = {{javaVersion}}{{#kotlin}}
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
|
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
|
||||||
kotlinOptions.jvmTarget = "1.8"{{/java8OrLater}}
|
jvmTarget = "1.8"{{/java8OrLater}}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
|
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
|
||||||
kotlinOptions.jvmTarget = "1.8"{{/java8OrLater}}
|
jvmTarget = "1.8"{{/java8OrLater}}
|
||||||
|
}
|
||||||
}{{/kotlin}}
|
}{{/kotlin}}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@@ -24,11 +24,15 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.6
|
sourceCompatibility = 1.6
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@@ -24,11 +24,15 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.7
|
sourceCompatibility = 1.7
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@@ -25,12 +25,16 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 9
|
sourceCompatibility = 9
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@@ -25,12 +25,16 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@@ -25,12 +25,16 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@@ -24,12 +24,16 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@@ -25,12 +25,16 @@ group = 'com.example'
|
|||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
compileKotlin {
|
compileKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
kotlinOptions {
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
Reference in New Issue
Block a user