Declare generated SourceSets correctly
Allow Gradle to keep the track of the task generating the sources KTI-1502 Fixed
This commit is contained in:
committed by
Space Team
parent
88f7b085e6
commit
5a1fb78fcd
+1
-2
@@ -188,11 +188,10 @@ class NamedNativeInteropConfig implements Named {
|
||||
interopStubs = project.sourceSets.create(interopStubsName)
|
||||
configuration = project.configurations.create(interopStubs.name)
|
||||
project.tasks.getByName(interopStubs.getTaskName("compile", "Kotlin")) {
|
||||
dependsOn genTask
|
||||
kotlinOptions.freeCompilerArgs = ["-Xskip-prerelease-check"]
|
||||
}
|
||||
|
||||
interopStubs.kotlin.srcDirs generatedSrcDir
|
||||
interopStubs.kotlin.srcDir(project.tasks.named(genTask.name).map { generatedSrcDir })
|
||||
|
||||
project.dependencies {
|
||||
add interopStubs.getApiConfigurationName(), project(path: ':kotlin-native:Interop:Runtime')
|
||||
|
||||
Reference in New Issue
Block a user