Vsevolod Ganin
04/01/2020, 3:15 PMmain
compilation. Custom compilation isn’t working. Is this expected?
Example:
I added two modules with
jvm() {
compilations.create('a') {
defaultSourceSet.dependsOn sourceSets.commonMain
}
compilations.create('b') {
defaultSourceSet.dependsOn sourceSets.commonMain
}
}
Then I added dependency from one to another like so
// This from `first-module/build.gradle`
sourceSets {
commonMain {
dependencies {
implementation project(':another-module')
}
}
}
And then I run a compilation of the first module like so ./gradlew :first-module:compileAKotlinJvm
. Then :other-module:compileAKotlinJvm
is never run in this case, just :other-module:compileKotlinJvm
(which is compilation task for main
compilation).