From 3db253a96c050c9b3cef1b0fe281ea1c4e64f2d1 Mon Sep 17 00:00:00 2001 From: Benjamin Deroche Date: Fri, 2 Aug 2024 10:10:24 +0200 Subject: [PATCH] Problem: Java build fail with Gradle > 8.4 Solution: Use up to date tools and default XML lib by excluding Xerces --- zproject_java.gsl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zproject_java.gsl b/zproject_java.gsl index 9c8ad0ed..66578297 100644 --- a/zproject_java.gsl +++ b/zproject_java.gsl @@ -131,15 +131,16 @@ buildscript { resolutionStrategy { force 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1' } + exclude group: 'xerces', module: 'xercesImpl' } } plugins { id 'java' id 'maven-publish' - id 'com.jfrog.artifactory' version '4.29.4' + id 'com.jfrog.artifactory' version '5.2.3' id 'com.jfrog.bintray' version '1.8.5' - id 'com.google.osdetector' version '1.7.0' + id 'com.google.osdetector' version '1.7.3' } wrapper.gradleVersion = '8.9' @@ -176,7 +177,6 @@ artifactory { repoKey = 'oss-snapshot-local' username = System.getenv('ARTIFACTORY_USERNAME') password = System.getenv('ARTIFACTORY_PASSWORD') - maven = true } } } @@ -199,9 +199,9 @@ dependencies { implementation "org.zeromq.$(use.project):$(use.project)-jni:$jni_dependencies_version" . endif . endfor - implementation 'org.scijava:native-lib-loader:2.4.0' - testImplementation 'junit:junit:4.12' - testImplementation 'org.hamcrest:hamcrest-all:1.3' + implementation 'org.scijava:native-lib-loader:2.5.0' + testImplementation 'junit:junit:4.13.2' + testImplementation 'org.hamcrest:hamcrest:2.2' } // ------------------------------------------------------------------