File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
kotlin-gradle-plugin-core/src/main/kotlin/org/jetbrains/kotlin/gradle/tasks
kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ public open class KotlinCompile() : AbstractKotlinCompile<K2JVMCompilerArguments
135
135
getLogger().kotlinDebug(" args.pluginOptions = ${args.pluginOptions.joinToString(File .pathSeparator)} " )
136
136
137
137
args.noStdlib = true
138
+ args.noJdk = kotlinOptions.noJdk
138
139
args.noInline = kotlinOptions.noInline
139
140
args.noOptimize = kotlinOptions.noOptimize
140
141
args.noCallAssertions = kotlinOptions.noCallAssertions
Original file line number Diff line number Diff line change @@ -314,7 +314,9 @@ open class KotlinAndroidPlugin @Inject constructor(val scriptHandler: ScriptHand
314
314
}
315
315
})
316
316
317
- (ext as ExtensionAware ).getExtensions().add(" kotlinOptions" , tasksProvider.kotlinJVMOptionsClass)
317
+ val extensions = (ext as ExtensionAware ).getExtensions()
318
+ extensions.add(" kotlinOptions" , tasksProvider.kotlinJVMOptionsClass)
319
+ AndroidGradleWrapper .setNoJdk(extensions.getByName(" kotlinOptions" ))
318
320
319
321
project.createKaptExtension()
320
322
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ class AndroidGradleWrapper {
63
63
return androidSourceSet. getJava(). getSrcDirs()
64
64
}
65
65
66
+ static def setNoJdk (Object kotlinOptionsExtension ) {
67
+ kotlinOptionsExtension. noJdk = true
68
+ }
69
+
66
70
@NotNull
67
71
static def List<String > getProductFlavorsNames (ApkVariant variant ) {
68
72
return variant. getProductFlavors(). iterator(). collect { it. getName() }
You can’t perform that action at this time.
0 commit comments