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:
Alexander Udalov
2020-11-02 10:10:25 +01:00
parent bdb8a58b3b
commit d326d6a693
13 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -76,10 +76,10 @@ compileKotlin {
"-Xallow-kotlin-package",
"-Xmultifile-parts-inherit",
"-Xnormalize-constructor-calls=enable",
"-module-name", project.name,
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
]
kotlinOptions.moduleName = project.name
}
compileTestKotlin {