rocketraman
12/14/2021, 8:17 PMcompileClasspath
configuration or main
source set. However, if I include the second build in the first build, now I get a compileClasspath
configuration coming from a main
source set (and this breaks the jetbrains compose runtime dependency). Any ideas on where to look?rocketraman
12/14/2021, 8:18 PMcompileClasspath
configuration:
Could not determine the dependencies of task ':compileJava'.
> Could not resolve all task dependencies for configuration ':compileClasspath'.
> Could not resolve androidx.compose.runtime:runtime:1.1.0-beta02.
Required by:
project : > org.jetbrains.compose.runtime:runtime:1.0.0
> No matching variant of androidx.compose.runtime:runtime:1.1.0-beta02 was found. The consumer was configured to find an API of a library compatible with Java 17, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant 'releaseVariantReleaseApiPublication' capability androidx.compose.runtime:runtime:1.1.0-beta02 declares an API of a library, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 17)
- Variant 'releaseVariantReleaseRuntimePublication' capability androidx.compose.runtime:runtime:1.1.0-beta02 declares a runtime of a library, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 17)
- Variant 'sourcesElements' capability androidx.compose.runtime:runtime:1.1.0-beta02 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 17)
- Doesn't say anything about its elements (required them preferably in the form of class files)
rocketraman
12/15/2021, 6:26 AMkotlin {
jvm {
withJava()
}
}
Removing withJava
solved the issue -- I guess there is some incompatibility between the multiplatform plugin and composite builds in the presence of withJava
.