Closed
Description
What did you do?
I create a java-platform
module in Gradle and consume protobuf-bom
to specify version of protobuf-java stack only once:
plugins {
`java-platform`
}
javaPlatform {
allowDependencies()
}
dependencies {
api(platform("com.google.protobuf:protobuf-bom:3.23.0"))
}
Then in my application's Gradle build I consume my java-platform
module and declare dependency on protobuf-kotlin
without version (hoping that the version will come from BOM):
dependencies {
implementation(platform("com.my-project:my-gradle-platform:0.0.1-SNAPSHOT"))
implementation("com.google.protobuf:protobuf-kotlin")
}
What did you expect to see
Working build
What did you see instead?
Could not determine the dependencies of task ':my-app:compileJava'.
> Could not resolve all task dependencies for configuration ':my-app:compileClasspath'.
> Could not find com.google.protobuf:protobuf-kotlin:.
Metadata
Assignees
Labels
No labels
Activity