Skip to content

protobuf-bom does not include protobuf-kotlin #12810

Closed
@gavvvr

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:.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions