Path: csiph.com!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Ole Streicher Newsgroups: linux.debian.maint.java Subject: Gradle problems when building adql-java package Date: Fri, 08 Dec 2023 12:30:01 +0100 Message-ID: X-Mailbox-Line: From debian-java-request@lists.debian.org Fri Dec 8 11:27:14 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.76 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Greylist: delayed 373 seconds by postgrey-1.36 at bendel; Fri, 08 Dec 2023 11:09:34 UTC User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Lines: 34 X-Mailing-List: archive/latest/23408 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87plzhufbe.fsf@burgos Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 08 Dec 2023 12:03:17 +0100 X-Original-Message-ID: <87plzhufbe.fsf@burgos> Xref: csiph.com linux.debian.maint.java:12722 Hi, I am trying to update the adql-java package to the newest upstream (beta) version. As it is my first project using gradle, I sumbled upon a number of problems: One is that the plugin org.javacc.javacc is not available. I guess this is because it is not packaged yet, right? My solution here is that I call javacc in d/rules before running dh_auto_build; is this the way to go? After this, dh_auto_build completes, but the tests fail with > Could not resolve junit:junit:4.13.1. Required by: project :ADQLLib > No cached version of junit:junit:4.13.1 available for offline mode. which is caused by dependencies { testImplementation 'junit:junit:4.13.1' testImplementation 'org.slf4j:slf4j-simple:1.7.25' } in the main build.gradle (right?) junit4 is however a build dependency (currently 4.13.2 in unstable). What should I do here? Are the versions here minversions? Removing the complete dependency will cause junit4 classes missing in the test, also setting the CLASSPATH environment variable doesn't help. What is the proper solution here? Best Ole