Bug#882271: libgradle-core-java: fail to honor maven relocations

Gilles Filippini pini at debian.org
Mon Nov 20 21:24:26 UTC 2017


Package: libgradle-core-java
Version: 3.2.1-5
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

While testing a build of mockito against a new json-simple releae I've
experienced a FTBFS due - IIUC - to gradle failing to honor correctly
a maven relocation:

...
Generating gradleApi JAR file: /<<PKGBUILDDIR>>/.gradle/caches/3.2.1/generated-gradle-jars/gradle-api-3.2.1.jar
Generating JAR file 'gradle-api-3.2.1.jar'
        Keep-alive timer started
        Adding Debian repository to project 'buildSrc'
Parallel execution is an incubating feature.
Evaluating root project 'buildSrc' using build file '/<<PKGBUILDDIR>>/buildSrc/build.gradle'.
Compiling build file '/<<PKGBUILDDIR>>/buildSrc/build.gradle' using SubsetScriptTransformer.
Compiling build file '/<<PKGBUILDDIR>>/buildSrc/build.gradle' using BuildScriptTransformer.
        Adding task debianMavenPom to project 'buildSrc'
        Configuring javadoc links
        Replacing com.googlecode.json-simple:json-simple:jar:1.1.1  ->  com.googlecode.json-simple:json-simple:jar:debian
com.googlecode.json-simple:json-simple:debian is relocated to com.github.cliftonlabs:json-simple:debian. Please update your dependencies.
Stopped 0 compiler daemon(s).

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':runtime'.
> Could not find json-simple.jar (com.googlecode.json-simple:json-simple:debian).
  Searched in the following locations:
      file:/usr/share/maven-repo/com/googlecode/json-simple/json-simple/debian/json-simple-debian.jar

* Try:
Run with --debug option to get more log output.

* Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.wrapException(ErrorHandlingConfigurationResolver.java:70)
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.access$000(ErrorHandlingConfigurationResolver.java:33)
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingConfigurationResolver.java:208) 
...


As I understand it, gradle should follow the relocation and look for
 file:/usr/share/maven-repo/com/github/cliftonlabs/json-simple/debian/json-simple-debian.jar
instead of
 file:/usr/share/maven-repo/com/googlecode/json-simple/json-simple/debian/json-simple-debian.jar

This bug is easily reproducible building mockito againt json-simple 2.3.0-1~exp1 currently in experimental.

Thanks,

- -- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAloTR/4ACgkQ7+hsbH/+
z4M/Tgf8CTl/EtClc2skjCpQA78YKnpTDcxq4EFYC/SJ00Pq94+AxbtaAwKNcbQ5
LlyC8O42LJfbh3yd92yzaZRi3D9rKutslDCsyfQlVeyD61ukwRPeu42xY9muekl9
RoDKSRN35PgeN6O+wlqFfFH4EdbFkVzf4pDXBzA7eSbTcp2rmAeq8nJ1091hOT/M
DXwj6LZrgl9mqOtA9EOJpOkimL/qzyUZwBu4OvtlrFTtNg5gXXhj7ckkLR4vXlAX
zMnyTbJC+R2WufXSBKLjGQpHk8FJCgzT2QnTduP0uGm2Z2xMe0Ud/Mi97CTAjeMV
o2U/SLXRWWxGb1JOJekzgMU1doIHFQ==
=ZMiE
-----END PGP SIGNATURE-----



More information about the pkg-java-maintainers mailing list