Specify module name via moduleName option instead of freeCompilerArgs
This allows to get rid of warnings about duplicate module name in some of the modules.
This commit is contained in:
@@ -63,13 +63,12 @@ tasks.withType<KotlinCompile> {
|
||||
dependsOn(copySources)
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-module-name",
|
||||
"kotlin-stdlib",
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xmulti-platform",
|
||||
"-Xopt-in=kotlin.RequiresOptIn",
|
||||
"-Xopt-in=kotlin.contracts.ExperimentalContracts"
|
||||
)
|
||||
moduleName = "kotlin-stdlib"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user