Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf-bom does not include protobuf-kotlin #12810

Closed
gavvvr opened this issue May 15, 2023 · 0 comments
Closed

protobuf-bom does not include protobuf-kotlin #12810

gavvvr opened this issue May 15, 2023 · 0 comments
Assignees

Comments

@gavvvr
Copy link

gavvvr commented May 15, 2023

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:.
@gavvvr gavvvr added the untriaged auto added to all issues by default when created. label May 15, 2023
@perezd perezd removed the untriaged auto added to all issues by default when created. label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants