:bson:checkstyleMain
Replacing com.puppycrawl.tools:checkstyle:jar:6.2 -> com.puppycrawl.tools:checkstyle:jar:debian
Passing through org.apache.commons:commons-lang3:jar:3.x
POM relocation to an other version number is not fully supported in Gradle : org.apache.commons#commons-lang3;3.x relocated to org.apache.commons#commons-lang3;debian.
Please update your dependency to directly use the correct version 'org.apache.commons#commons-lang3;debian'.
Resolution will only pick dependencies of the relocated element. Artifacts and other metadata will be ignored.
Passing through org.apache.commons:commons-lang3:jar:debian
Passing through org.apache.commons:commons-parent:jar:debian
Passing through org.apache:apache:jar:debian
Passing through antlr:antlr:jar:2.x
Passing through org.antlr:antlr4-runtime:jar:debian
Passing through org.antlr:antlr4-master:jar:debian
Passing through commons-beanutils:commons-beanutils:jar:debian
Passing through commons-cli:commons-cli:jar:debian
Passing through com.google.guava:guava:jar:debian
Passing through com.google.guava:guava-parent:jar:debian
Passing through commons-collections:commons-collections:jar:3.x
file or directory '/«PKGBUILDDIR»/bson/src/main/groovy', not found
Executing task ':bson:checkstyleMain' (up-to-date check took 0.171 secs) due to:
No history is available.
:bson:checkstyleMain FAILED
:bson:checkstyleMain (Thread[main,5,main]) completed. Took 0.637 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bson:checkstyleMain'.
> java.lang.NoClassDefFoundError: org/apache/commons/lang3/ArrayUtils
This seems to be similar to this problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832869
which was apparently fixed by this commit:
I've tried adding the line:
org.apache.commons commons-lang3 * s/.*/debian/ * *
to my debian/maven.rules file, but still get the same error message.
Interestingly, if I build the package on Ubuntu Xenial (which has libcommons-lang3-java 3.4-1) I don't get this problem, presumably because the 'debian' version was only added in 3.4-2.
Thanks for any suggestions.
Christopher