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

Why is :jdk8@jar required in the plugin artifact string? #568

Open
timothyfroehlich opened this issue Mar 11, 2024 · 4 comments
Open

Why is :jdk8@jar required in the plugin artifact string? #568

timothyfroehlich opened this issue Mar 11, 2024 · 4 comments

Comments

@timothyfroehlich
Copy link

Is there a reason for it? My build seems to work fine without it and that seems to be the only artifact that's being published anyways.

@jamesward
Copy link
Collaborator

I wonder if this is needed depending on your JVM version. What version are you using?

@timothyfroehlich
Copy link
Author

timothyfroehlich commented Mar 11, 2024 via email

@jamesward
Copy link
Collaborator

I tried removing it in examples/stub/build.gradle.kts and got:

$ ./gradlew :stub:build
> Task :stub:generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':stub:generateProto'.
> Could not resolve all files for configuration ':stub:protobufToolsLocator_grpckt'.
   > Could not find protoc-gen-grpc-kotlin-1.4.1-linux-x86_64.exe (io.grpc:protoc-gen-grpc-kotlin:1.4.1).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-kotlin/1.4.1/protoc-gen-grpc-kotlin-1.4.1-linux-x86_64.exe

For reference, here is the PR to protobuf-gradle-plugin that added support for JAR plugins:
google/protobuf-gradle-plugin#168

Can you give more details on how you removed the classifier and got it working?

@timothyfroehlich
Copy link
Author

Well, I don't know. Perhaps I hadn't cleared my cache properly or perhaps I built the wrong target. I noticed it while working on another team's code. But the PR you linked does seem to say that it was needed so perhaps it is. It's not worth me digging in further, I just wanted to try and remove some odd looking code.

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

No branches or pull requests

2 participants