Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Markus Koschany Newsgroups: linux.debian.maint.java Subject: Re: Help With Gradle-plugin-protobuf Update Date: Sat, 09 Jul 2022 12:50:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Sat Jul 9 10:43:16 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-10.773 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, CAPINIT=0.5, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, SARE_MSGID_LONG40=0.637, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_MX=-3.1 (check from: .debian. - helo: .hesinde.koschany. - helo-domain: .koschany.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -4.6 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-W0tIqqttqK+aIzqQPtqb" MIME-Version: 1.0 Authentication-Results: ORIGINATING; auth=pass smtp.auth=apo@gambaru.de smtp.mailfrom=apo@debian.org X-Mailing-List: archive/latest/23041 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/688525110690a6f20247425efbd60c7f0563780e.camel@debian.org Approved: robomod@news.nic.it Lines: 105 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: android-tools-devel@alioth-lists.debian.net X-Original-Date: Sat, 09 Jul 2022 12:42:59 +0200 X-Original-Message-ID: <688525110690a6f20247425efbd60c7f0563780e.camel@debian.org> X-Original-References: Xref: csiph.com linux.debian.maint.java:12403 --=-W0tIqqttqK+aIzqQPtqb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Sonnie, Am Freitag, dem 08.07.2022 um 20:35 +0100 schrieb Nkwuda Sunday Cletus: > Hi there. >=20 > I am a GSOC intern currently working with Debian Android-tools-team to= =20 > package and update Android sdk tools in Debian. >=20 > Currently I am attempting to package bundletool (=20 > https://github.com/google/bundletool=C2=A0), but I am stuck because it= =20 > depends on a much more recent version of gradle-plugin-protobuf. I=20 > attempted to update gradle-plugin-protobuf but couldn't. Please your=20 > help will be very appreciated. >=20 > Find the details of my attempt and findings here:=20 > https://salsa.debian.org/android-tools-team/admin/-/issues/51 I am currently working on a full Gradle update which includes some of the artifacts like the kotlin-dsl-plugin and should enable us to package a newe= r version of gradle-plugin-protobuf in the near future. However one of my findings is that we should try hard to avoid pulling in even more Gradle plugins or Gradle related dependencies. I don't think Gradle will ever be a build system that fits into the Debian ecosystem and the more we make other packages dependent on it the more problems we will face in the future. Hence why I suggest you take a different path. A few months ago I have pack= aged a new version of libthrift-java which you could use as a template for your = own project. [1] libthrift-java usually requires Gradle as well. I simplified the packaging = by using our Debian standard tools javahelper and maven-repo-helper. This should work for bundletool too. Looking at https://github.com/google/bundletool/blob/master/build.gradle we should have all the dependencies in Debian already, except of maybe com.android:zipflinger and com.google.dagger. Ignore all tests and test dependencies. Just use the src/main directory as = your upstream sources (and additionally archive/com/google/android/archive if th= is is required for your project) and try to compile the Java code with jh_buil= d first. Add all the required dependencies to your CLASSPATH and you should g= et a preliminary jar file.=C2=A0 For the code in src/main/proto you will need the protobuf-compiler package (already in Debian) and possibly libprotobuf2-java (also in Debian but an o= lder version). gradle-plugin-protobuf is just a wrapper around these tools. It should be possible to do all this by hand in debian/rules when you call the protoc command from protobuf-compiler. If you succeed you would get rid of Gradle completely and dramatically simplify the packaging process for futur= e contributors. If you have more questions, please feel free to ask on this list. Regards, Markus [1] https://tracker.debian.org/pkg/libthrift-java --=-W0tIqqttqK+aIzqQPtqb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEErPPQiO8y7e9qGoNf2a0UuVE7UeQFAmLJW7NfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEFD RjNEMDg4RUYzMkVERUY2QTFBODM1RkQ5QUQxNEI5NTEzQjUxRTQACgkQ2a0UuVE7 UeQ8QQ/+LkDqf33djDQ2OZGmDsjEO9EYtSNUHI35dFKlXg1vlkJ3eRfHgP/wMYY7 a2tR+/+s0u9srD9vQVJNMVrcJMWKFcehUx5bPADtu1fpLGyhEDy3WVWezZ8HxnEP gokeHiqXut9xCK6ksYaMVm982eHA3t6KeK1Dny5vV7QvsFU7qdfNhG00Isg4RL7+ IezPFHDRf20ro0gdv2xG6DUizofHmvJkn80jngaHHWEurpgOulG5X0TnpJ/oaVmL hss5uaPhFHmAN+pfLS4uLdcPOjEiYN0lQCMyRzdWby1IGGYxVyZ6pOZ8Q1VGUZ3u Qpnveyh8CEKM2Y83S58jaSObJNsovEwxrUhvkuS5+Uc/bVNraGR/6Zujr/vNgBSK C8hZ7CP1e5MGao8jbwMiavPm20GcRyGefWLBj1xs7XaGKr+NQj8PyIQbDa1GxCg+ UgIaL1Ein5i5m7mAKg7HQXoWlpWpeLMB1RqouQ9YzZkrKJL7YKMmQjpLqOZkDdGg ycnaXVJxjdZhrjV/7Y5mByiEpXUItgOxL8XRXa50N/AMLb+JCg3MRqwfdUEvH8Zt M4Jk7x4wc1Hi/HbxQTZLiTRU0wJN9QUcaOL0rqvEdIsexK//9wKvuTA5loZi0uRe fWRz11kRQeG2XYURuh9c97RQ12CBEOdCkPXDrt3qVdpqw3idemc= =mxhe -----END PGP SIGNATURE----- --=-W0tIqqttqK+aIzqQPtqb--