Set module name for common projects, this isn't done automatically yet

This commit is contained in:
Ilya Gorbunov
2018-04-01 21:23:44 +03:00
parent 0e4925a20f
commit 7ccbd36304
2 changed files with 9 additions and 4 deletions
@@ -25,4 +25,12 @@ classes.dependsOn.remove("compileJava")
artifacts { artifacts {
archives sourcesJar archives sourcesJar
archives javadocJar archives javadocJar
}
compileKotlinCommon {
kotlinOptions {
freeCompilerArgs = [
"-module-name", project.name
]
}
} }
+1 -4
View File
@@ -34,16 +34,13 @@ compileKotlinCommon {
// compilerJarFile = compilerJarWithBootstrapRuntime // compilerJarFile = compilerJarWithBootstrapRuntime
} }
/*
// TODO: currently unsupported
compileKotlinCommon { compileKotlinCommon {
kotlinOptions { kotlinOptions {
freeCompilerArgs = [ freeCompilerArgs = [
"-module-name", "${project.name}".toString() "-module-name", project.name
] ]
} }
} }
*/
kotlin.experimental.coroutines 'enable' kotlin.experimental.coroutines 'enable'