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