Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11698

Gradle problems in Debian

From Olek Wojnar <olek@debian.org>
Newsgroups linux.debian.maint.java
Subject Gradle problems in Debian
Date 2020-06-19 10:50 +0200
Message-ID <AjkSJ-BA-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 | NextNext in thread | Find similar


Thread

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