Browse Source
* gh-12641: Polish “Configure Kotlin compiler to use -java-parameters by default” Configure Kotlin compiler to use -java-parameters by defaultpull/12627/merge
8 changed files with 75 additions and 4 deletions
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
buildscript { |
||||
dependencies { |
||||
classpath files(pluginClasspath.split(',')) |
||||
} |
||||
} |
||||
|
||||
plugins { |
||||
id 'org.jetbrains.kotlin.jvm' version '1.2.10' |
||||
} |
||||
|
||||
apply plugin: 'org.springframework.boot' |
||||
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile |
||||
|
||||
tasks.withType(KotlinCompile) { |
||||
kotlinOptions.javaParameters = false |
||||
} |
||||
|
||||
task('kotlinCompileTasksJavaParameters') { |
||||
doFirst { |
||||
tasks.withType(KotlinCompile) { |
||||
println "$name java parameters: ${kotlinOptions.javaParameters}" |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
buildscript { |
||||
dependencies { |
||||
classpath files(pluginClasspath.split(',')) |
||||
} |
||||
} |
||||
|
||||
plugins { |
||||
id 'org.jetbrains.kotlin.jvm' version '1.2.10' |
||||
} |
||||
|
||||
apply plugin: 'org.springframework.boot' |
||||
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile |
||||
|
||||
task('kotlinCompileTasksJavaParameters') { |
||||
doFirst { |
||||
tasks.withType(KotlinCompile) { |
||||
println "$name java parameters: ${kotlinOptions.javaParameters}" |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue