Closed rocketraman closed 6 years ago
Hi @rocketraman. Sorry for missing your issue. Could you please supply some details about your build setup so I can try to reproduce this.
It looks like it’s looking for a platform specific artifact while the plugin is a java binary, so it should not need to be downloaded with a linux-x86_64
classifier.
@rouzwawi Thanks. My build setup is:
Gradle 4.6 Protobuf 3.5.1 gRPC 1.12.0 Kotlin 1.2.50
with the Protobuf gradle plugin 0.8.5.
HTH!
I got this working by rebuilding the artifact and posting it to a maven repository on a nexus server.
The trick was to specify jdk8
as the classifier so the protobuf gradle plugin could resolve it. The other thing that had to happen was making the jar file executable from linux, which involves adding a preamble to it.
So in consuming projects, the include became:
grpckotlin {
artifact = "kotlin:grpc-kotlin-gen:0.0.2:jdk8@jar"
}
@51systems thanks for the hint! I didn't know about this difference between the Gradle and Maven plugins. The linked PR should resolve this for Gradle on unix-like systems now.
Version 0.0.2
is now released and should be usable like
grpckotlin {
artifact = "io.rouz:grpc-kotlin-gen:0.0.2:jdk8@jar"
}
Thank you!
On Linux, I get the following error when running a gradle build with the grpc-kotlin plugin: