Benoit Quenaudon
02/26/2020, 4:36 PMKotlinCompilationNpmResolver
isn't able to resolve it.
The --info
would show me that the nested project's module has been found to then tell me that it cannot find the project
Selected primary task ':wire-tests:jsPackageJson' from project :wire-tests
Found project 'project :wire-library:wire-runtime' as substitute for module 'com.squareup.wire:wire-runtime'.
Found project 'project :wire-library:wire-grpc-client' as substitute for module 'com.squareup.wire:wire-grpc-client'.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':wire-tests:jsPackageJson'.
> Cannot find project :wire-runtime
The stracktrace brings me to https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/resolver/KotlinCompilationNpmResolver.kt#L185
It looks like the project.projectRegistry
only has access to the root modules, and none of the `includedBuild`'s modules are in there.Sean Keane
02/26/2020, 4:55 PMBenoit Quenaudon
02/26/2020, 4:58 PMwire-tests
module https://github.com/square/wire/blob/bquenaudon.2020-02-25.compositebuilds/wire-tests/build.gradle
And the build.gradle of the included `wire-runtime`: https://github.com/square/wire/blob/bquenaudon.2020-02-25.compositebuilds/wire-library/wire-runtime/build.gradleSebastian Aigner
02/26/2020, 5:09 PMBenoit Quenaudon
02/26/2020, 5:14 PMBenoit Quenaudon
02/26/2020, 6:49 PM