Fixed: Update build.gradle to the latest dependencies (OFBIZ-12092)

After last changes jdom is missing when using framework only, certainly due to a
3rd party lib change that included it.

This fixes the issue, by not only adding last jdom lib ('org.jdom:jdom:2.0.2')
in build.gradle but also changing the import where used: they changed to jdom2!
This commit is contained in:
Jacques Le Roux
2020-12-19 14:54:04 +01:00
parent 71a0d6b4db
commit 3355c64f4c
5 changed files with 7 additions and 7 deletions
@@ -42,7 +42,7 @@ import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.util.EntityUtilProperties;
import org.apache.ofbiz.service.ModelService;
import org.apache.ofbiz.service.ServiceUtil;
import org.jdom.JDOMException;
import org.jdom2.JDOMException;
/**
* ScaleImage Class
@@ -59,7 +59,7 @@ import org.apache.ofbiz.service.DispatchContext;
import org.apache.ofbiz.service.GenericServiceException;
import org.apache.ofbiz.service.LocalDispatcher;
import org.apache.ofbiz.service.ServiceUtil;
import org.jdom.JDOMException;
import org.jdom2.JDOMException;
public class FrameImage {
@@ -55,7 +55,7 @@ import org.apache.ofbiz.service.GenericServiceException;
import org.apache.ofbiz.service.LocalDispatcher;
import org.apache.ofbiz.service.ModelService;
import org.apache.ofbiz.service.ServiceUtil;
import org.jdom.JDOMException;
import org.jdom2.JDOMException;
/**
* Product Services
@@ -62,7 +62,7 @@ import org.apache.ofbiz.service.GenericServiceException;
import org.apache.ofbiz.service.LocalDispatcher;
import org.apache.ofbiz.service.ModelService;
import org.apache.ofbiz.service.ServiceUtil;
import org.jdom.JDOMException;
import org.jdom2.JDOMException;
/**
* Product Services
+3 -3
View File
@@ -202,13 +202,13 @@ dependencies {
implementation 'oro:oro:2.0.8'
implementation 'wsdl4j:wsdl4j:1.6.3'
implementation 'com.auth0:java-jwt:3.11.0'
implementation 'org.jdom:jdom:2.0.0'
implementation 'org.jdom:jdom:2.0.2'
testImplementation 'org.hamcrest:hamcrest-library:2.2' // Enable junit4 to not depend on hamcrest-1.3
testImplementation 'org.mockito:mockito-core:3.6.28'
testImplementation 'org.jmockit:jmockit:1.49'
testImplementation 'com.pholser:junit-quickcheck-generators:1.0'
runtimeOnly 'javax.xml.soap:javax.xml.soap-api:1.4.0'
runtimeOnly 'de.odysseus.juel:juel-spi:2.2.7'
runtimeOnly 'net.sf.barcode4j:barcode4j-fop-ext:2.1'