Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Roger Shimizu Newsgroups: linux.debian.maint.java Subject: Re: Packaging issue on gradle's library dependency Date: Mon, 21 Dec 2015 15:40:02 +0100 Message-ID: References: X-Original-To: =?UTF-8?B?5q635ZWf6IGw?= X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Dec 21 14:30:13 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.279 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-vk0-x22c.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=4I25H55o+iW5rhqBnmJcbCZneiZj0sYyMJYXGunBHgU=; b=TESoFvhAJ0a4JtVNvFTzP7CZFAI4aS2rl/3pkdl1e4vijgdXkcYfgZw8ljXe/EM9MF u2UIvNFKPnaLpI8XascDXNfAutbGsod/LflKQmcPwil4WYQW8WrXDO+DBpsoop9LpQwk aX0X32dVgF6C7AWTJbLZsieYNgmQeiPiPHhoQlYYnpEf9nlGCpzOssYF1ojd9Je61fI0 9503X+xjeDF4VbMbaQMl47bts3OAYuihqFkHThCgZ1awnz67HjMXyDuuM7tdBwNKrQZv jBjGLtSzlkc7IVW5E2zt9g8RO2jW80qjGKfzx7Of4jay+qDmmvbqU1SW5BJWVZumz673 Jdiw== X-Received: by 10.31.50.85 with SMTP id y82mr12076546vky.48.1450707288946; Mon, 21 Dec 2015 06:14:48 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/19001 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAEQ9gE=1f4Jf9Z2c9ZnGrXiNKa7US+ORKQvz1OVhpu4EB46gZA@mail.gmail.com Approved: robomod@news.nic.it Lines: 77 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Java X-Original-Date: Mon, 21 Dec 2015 23:14:34 +0900 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.java:8682 On Sun, Dec 20, 2015 at 2:28 AM, =E6=AE=B7=E5=95=9F=E8=81=B0 wrote: > I haven't dug too much about your package, but I think you are right > about Proguard missing the POM files. Currently "proguard" does not > generate maven-repo data which are POMs stored in > /usr/share/maven-repo. It will be great to submit a wishlist bug to > src:proguard, but if you want to get your package prepared soon you > can avoid using gradle-debian-helper (--buildsystem=3Dgradle) by > directly invoking Gradle in your debian/rules. But you need to do some > extra work: Thanks for your reply in detail! For the lack of POMs for proguard, it seems fine since you introduced me the workaround. > # 1. Invoking Gradle > > See . > The point is you need to add "--offline --gradle-user-home > .gradlehome" and after the invocation you need to remove .gradle and > .gradlehome. > # 2. Patch build scripts > > Replace all repository closures with: > > repositories { > flatDir { dirs '/usr/share/java' } > maven { url 'file:///usr/share/maven-repo' } > } I have no experienced in java related packaging, so I didn't get what you said at first. But I found a patch to migrate from the way you proposed to what I have been used: - http://lists.alioth.debian.org/pipermail/pkg-java-commits/2015-October/04= 6387.html What I need is actually "reverse" version of above patch. (of course with a few changes) Now I have overcome the "proguard" library issue. However, I met new dependency issue, log as below. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Evaluating project ':smali' using build file '/home/roger/smali/smali/build.gradle'. Compiling build file '/home/roger/smali/smali/build.gradle' using SubsetScriptTransformer. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':smali'. > Could not resolve all dependencies for configuration ':smali:classpath'. > Could not find co.tomlee.gradle.plugins:gradle-jflex-plugin:0.0.2. Searched in the following locations: file:/usr/share/java/gradle-jflex-plugin-0.0.2.jar file:/usr/share/java/gradle-jflex-plugin.jar file:/usr/share/maven-repo/co/tomlee/gradle/plugins/gradle-jflex-p= lugin/0.0.2/gradle-jflex-plugin-0.0.2.pom file:/usr/share/maven-repo/co/tomlee/gradle/plugins/gradle-jflex-p= lugin/0.0.2/gradle-jflex-plugin-0.0.2.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D I find a few "grandle plugins" in pkg libgradle-plugins-java, which is produced by src:gradle. But gradle-jflex is not covered by libgradle-plugins-java, so I guess I need to package it myself. The upstream is: - https://github.com/thomaslee/gradle-jflex-plugin I just want to confirm my understanding is correct. Thank you! Cheers, Roger