[Debian-med-packaging] How to replace eclipse compiler in libsis-jhdf5-java

Emmanuel Bourg ebourg at apache.org
Thu Sep 20 13:23:01 BST 2018


Le 20/09/2018 à 14:02, Andreas Tille a écrit :

> +--- a/build.gradle
> ++++ b/build.gradle
> +@@ -3,8 +3,8 @@ apply from: 'javaproject.gradle'
> + group='sis'
> + 
> + dependencies {
> +-    compile fileTree(dir: 'libs/prod', include: '*.jar')
> +-    testCompile fileTree(dir: 'libs/test', include: '*.jar')
> ++    compile fileTree(dir: '/usr/share/java', include: '*.jar')
> ++    testCompile fileTree(dir: '/usr/share/java', include: '*.jar')
> + }
> + 
> + tasks.withType(Test) {

Including all jars in /usr/share/java isn't a good idea. I've seen
packages failing to build due to this. It's preferable to list the exact
jars used.


> Can I assume that this is safe or is there any trouble to be expected?

I don't know but it's worth trying.

Emmanuel Bourg



More information about the Debian-med-packaging mailing list