@@ -28,8 +28,8 @@ repositories {
28
28
}
29
29
30
30
quiltflower {
31
- quiltflowerVersion.set( libs.versions.quiltflower.get() )
32
- addToRuntimeClasspath.set( true )
31
+ quiltflowerVersion = libs.versions.quiltflower.get()
32
+ addToRuntimeClasspath = true
33
33
preferences[" win" ] = 0
34
34
}
35
35
@@ -38,12 +38,12 @@ java {
38
38
sourceCompatibility = JavaVersion .toVersion(targetVersion)
39
39
targetCompatibility = sourceCompatibility
40
40
if (JavaVersion .current() < JavaVersion .toVersion(targetVersion)) {
41
- toolchain.languageVersion.set( JavaLanguageVersion .of(targetVersion) )
41
+ toolchain.languageVersion = JavaLanguageVersion .of(targetVersion)
42
42
}
43
43
}
44
44
45
45
tasks.withType(JavaCompile ::class ).configureEach {
46
- options.release.set( targetVersion)
46
+ options.release = targetVersion
47
47
options.encoding = " UTF-8"
48
48
options.compilerArgs.addAll(listOf (" -Xlint:all" , " -Xlint:-processing" ))
49
49
}
@@ -155,7 +155,7 @@ tasks {
155
155
val scriptDest = project.layout.buildDirectory.file(if (System .getProperty(" os.name" ).contains(" windows" , ignoreCase = true )) { " run-dev.bat" } else { " run-dev" })
156
156
val argsDest = project.layout.buildDirectory.file(" run-dev-args.txt" )
157
157
val taskClasspath = project.files(jar.map { it.outputs }, configurations.runtimeClasspath)
158
- val toolchain = project.javaToolchains.launcherFor { languageVersion.set( JavaLanguageVersion .of(targetVersion) ) }
158
+ val toolchain = project.javaToolchains.launcherFor { languageVersion = JavaLanguageVersion .of(targetVersion) }
159
159
inputs.files(taskClasspath)
160
160
.ignoreEmptyDirectories()
161
161
.withPropertyName(" runClasspath" )
0 commit comments