This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/release22.01 by this push:
     new c8860b0a2 Fixed: Eclipse build problems and proper dependency setup 
(OFBIZ-12808)
c8860b0a2 is described below

commit c8860b0a2fdd12d9a52e4a5e27a7cda77472c643
Author: Michael Brohl <michael.br...@ecomify.de>
AuthorDate: Fri Apr 21 14:24:56 2023 +0200

    Fixed: Eclipse build problems and proper dependency setup (OFBIZ-12808)
    
    Due to improper dependency configurations and the JPMS (Java Plattform
    Module System) which was introduced to Java since version 9, the Eclipse
    build and running/debugging is not working with JDK 17 (trunk and
    release22.01).
    
    The reason is that there are dependencies to libraries which are also
    shipped with the JDK which causes a conflict leading to ignore those
    packages/classes in the build.
    
    This commit fixes the problems for the release22.01 plugins.
---
 birt/build.gradle | 6 ++++++
 ldap/build.gradle | 9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/birt/build.gradle b/birt/build.gradle
index 0ce984e1e..6ee6e884f 100644
--- a/birt/build.gradle
+++ b/birt/build.gradle
@@ -23,3 +23,9 @@ dependencies {
         exclude group: 'org.eclipse.birt.runtime.3_7_1', module: 
'org.apache.batik.pdf'
     }
 }
+
+configurations.all {
+    exclude group: 'org.eclipse.birt.runtime', module: 'javax.xml.stream'
+    exclude group: 'org.eclipse.birt.runtime.3_7_1', module: 
'org.apache.xml.serializer'
+    exclude group: 'org.eclipse.birt.runtime.3_7_1', module: 
'org.apache.xerces'
+}
diff --git a/ldap/build.gradle b/ldap/build.gradle
index a734dd948..d541161d3 100644
--- a/ldap/build.gradle
+++ b/ldap/build.gradle
@@ -20,3 +20,12 @@
 dependencies {
     pluginLibsCompile 'org.apereo.cas:cas-server-support-ldap-core:5.0.10' //  
6.4.0 declares an API of a component compatible with Java 11 and the consumer 
needed a runtime of a component compatible with Java 8
 }
+
+configurations.all {
+    exclude group: 'javax.xml.parsers', module: 'jsr173_api'
+    exclude group: 'javax.xml.namespace', module: 'jsr173_api'
+    exclude group: 'javax.xml.bind', module: 'jsr173_api'
+    exclude group: 'javax.xml.bind', module: 'jaxb-api'
+    exclude group: 'geronimo-spec', module: 'geronimo-spec-jta'
+    
+}

Reply via email to