Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #11701
| From | Vincent Prat <vinceprat@free.fr> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: Gradle problems in Debian |
| Date | 2020-06-20 11:40 +0200 |
| Message-ID | <AjI8F-6dn-1@gated-at.bofh.it> (permalink) |
| References | <AjkSJ-BA-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi,
I agree that Gradle can be a pain to package software for Debian.
According to the documentation of the antonov protobuf gradle plugin
[1], the name of the plugin is just "protobuf".
Maybe you could try this.
Best regards,
Vincent
[1] https://github.com/aantono/gradle-plugin-protobuf
Le 19/06/2020 à 10:29, Olek Wojnar a écrit :
> Java Maintainers,
>
> Has anyone been able to successfully use Gradle for Debian packaging?
> I am finding the experience an exercise in extreme frustration....
>
> For example, I have been trying to build grpc-java and it needs the
> Gradle Protobuf plugin ("com.google.protobuf"). Seems simple enough,
> right? But no, it's not. First of all, the gradle-plugin-protobuf
> package that seems like it should provide this plugin instead
> provides "ws.antonov.gradle.plugins.protobuf.ProtobufPlugin" although
> I had to dig through the jar file to find that. I'm assuming that's
> the plugin name since it's listed in
> META-INF/gradle-plugins/protobuf.properties as "implementation-class".
> However, when I replace
> apply plugin: "com.google.protobuf"
> with
> apply plugin: "ws.antonov.gradle.plugins.protobuf.ProtobufPlugin"
> Gradle continues to give me:
> * What went wrong:
> A problem occurred evaluating project ':grpc-compiler'.
> > Plugin with id
> 'ws.antonov.gradle.plugins.protobuf.ProtobufPlugin' not found.
>
> Does anyone have any suggestions on how I can get this working?? It
> appears that gradle-plugin-protobuf has no reverse depends so I
> couldn't even check to see how someone else got it working... I'm
> wondering if they gave up. I'm regretting trying to use Gradle in the
> first place and thinking I should have just downloaded source jars
> from Maven Central and built the package from those...
>
> Side note: grpc-java also supports building with Bazel and, looking at
> the build files, this seems to be a much simpler process.
> Unfortunately, I'm doing all this so that we can package Bazel in the
> first place so that doesn't really help....
>
> Thanks in advance if anyone can shed light on this...
>
> -Olek
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Next in thread | Find similar
Gradle problems in Debian Olek Wojnar <olek@debian.org> - 2020-06-19 10:50 +0200
Re: Gradle problems in Debian Vincent Prat <vinceprat@free.fr> - 2020-06-20 11:40 +0200
Re: Gradle problems in Debian Olek Wojnar <olek@debian.org> - 2020-06-21 10:40 +0200
csiph-web