Skip to content

Commit

Permalink
Replace the xml-apis-ext dependency with separate API modules, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed May 1, 2021
1 parent abd6f0a commit 856f700
Show file tree
Hide file tree
Showing 199 changed files with 4,337 additions and 185 deletions.
8 changes: 1 addition & 7 deletions echosvg-all/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'echosvg.java-conventions'
id 'de.jjohannes.extra-java-module-info'
}

dependencies {
Expand All @@ -13,12 +12,7 @@ dependencies {
api project(':echosvg-svgpp')
api project(':echosvg-ttf2svg')
api project(':echosvg-svgrasterizer')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
api project(':svgom-api')
}

description = 'io.sf.carte:echosvg-all'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-all/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
requires transitive io.sf.carte.echosvg.util.gui;
requires transitive io.sf.carte.echosvg.xml;
requires transitive io.sf.carte.echosvg.apps.slideshow;
requires xml.apis.ext;
requires transitive org.w3c.dom.svg;
}
7 changes: 0 additions & 7 deletions echosvg-anim/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
plugins {
id 'echosvg.java-conventions'
id 'de.jjohannes.extra-java-module-info'
}

dependencies {
api project(':echosvg-dom')
api project(':echosvg-parser')
api project(':echosvg-svg-dom')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
}

description = 'io.sf.carte:echosvg-anim'
Expand Down
8 changes: 3 additions & 5 deletions echosvg-anim/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
exports io.sf.carte.echosvg.anim;
exports io.sf.carte.echosvg.anim.timing;

requires io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.css;
requires transitive io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.external;
requires io.sf.carte.echosvg.parser;
requires io.sf.carte.echosvg.i18n;
requires io.sf.carte.echosvg.constants;
requires transitive io.sf.carte.echosvg.dom.svg;
requires io.sf.carte.css4j;
requires io.sf.carte.echosvg.dom;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires xml.apis.ext;
}
26 changes: 13 additions & 13 deletions echosvg-awt-util/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
* limitations under the License.
*/
module io.sf.carte.echosvg.awt {
exports io.sf.carte.echosvg.ext.awt.image.renderable;
exports io.sf.carte.echosvg.ext.awt;
exports io.sf.carte.echosvg.ext.swing;
exports io.sf.carte.echosvg.ext.awt.image.spi;
exports io.sf.carte.echosvg.ext.awt.image.rendered;
exports io.sf.carte.echosvg.ext.awt.image;
exports io.sf.carte.echosvg.ext.awt.geom;
exports io.sf.carte.echosvg.ext.awt.color;
exports io.sf.carte.echosvg.ext.awt.font;
exports io.sf.carte.echosvg.ext.awt.g2d;
exports io.sf.carte.echosvg.ext.awt.image.renderable;
exports io.sf.carte.echosvg.ext.awt;
exports io.sf.carte.echosvg.ext.swing;
exports io.sf.carte.echosvg.ext.awt.image.spi;
exports io.sf.carte.echosvg.ext.awt.image.rendered;
exports io.sf.carte.echosvg.ext.awt.image;
exports io.sf.carte.echosvg.ext.awt.geom;
exports io.sf.carte.echosvg.ext.awt.color;
exports io.sf.carte.echosvg.ext.awt.font;
exports io.sf.carte.echosvg.ext.awt.g2d;

requires io.sf.carte.echosvg.util;
requires transitive java.desktop;
requires xmlgraphics.commons;
requires transitive io.sf.carte.echosvg.util;
requires xmlgraphics.commons;
requires io.sf.carte.echosvg.i18n;
}
3 changes: 1 addition & 2 deletions echosvg-bridge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ dependencies {
exclude group: 'xml-apis', module: 'xml-apis'
}
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
api project(':svgom-api')
implementation "org.mozilla:rhino:${rhinoVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xalan-${xalanVersion}.jar", 'xalan')
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
automaticModule("xmlgraphics-commons-${xmlgraphicsCommonsVersion}.jar", 'xmlgraphics.commons')
automaticModule("rhino-${rhinoVersion}.jar", 'org.mozilla.rhino')
}
Expand Down
17 changes: 6 additions & 11 deletions echosvg-bridge/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,14 @@
exports io.sf.carte.echosvg.bridge;
exports io.sf.carte.echosvg.bridge.svg12;

requires io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.external;
requires io.sf.carte.echosvg.gvt;
requires io.sf.carte.echosvg.script;
requires io.sf.carte.echosvg.dom.svg;
requires io.sf.carte.css4j;
requires io.sf.carte.echosvg.anim;
requires io.sf.carte.echosvg.parser;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires transitive io.sf.carte.echosvg.gvt;
requires transitive io.sf.carte.echosvg.script;
requires transitive io.sf.carte.echosvg.anim;
requires transitive io.sf.carte.echosvg.parser;
requires io.sf.carte.echosvg.constants;
requires io.sf.carte.echosvg.i18n;
requires org.mozilla.rhino;
requires xalan;
requires xml.apis.ext;
requires xmlgraphics.commons;
}
3 changes: 1 addition & 2 deletions echosvg-css/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ plugins {

dependencies {
api project(':echosvg-util')
api project(':svgom-api')
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
api "io.sf.carte:css4j:${css4jVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
automaticModule("xmlgraphics-commons-${xmlgraphicsCommonsVersion}.jar", 'xmlgraphics.commons')
}

Expand Down
29 changes: 15 additions & 14 deletions echosvg-css/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@
* limitations under the License.
*/
module io.sf.carte.echosvg.css {
exports io.sf.carte.echosvg.css.engine;
exports io.sf.carte.echosvg.css.engine.value.css2;
exports io.sf.carte.echosvg.css.engine.value.svg;
exports io.sf.carte.echosvg.css.dom;
exports io.sf.carte.echosvg.css.engine.value;
exports io.sf.carte.echosvg.css.engine.value.svg12;
exports io.sf.carte.echosvg.css.engine;
exports io.sf.carte.echosvg.css.engine.value.css2;
exports io.sf.carte.echosvg.css.engine.value.svg;
exports io.sf.carte.echosvg.css.dom;
exports io.sf.carte.echosvg.css.engine.value;
exports io.sf.carte.echosvg.css.engine.value.svg12;

requires transitive io.sf.carte.echosvg.util;
requires io.sf.carte.css4j;
requires io.sf.carte.util;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires xml.apis.ext;
requires xmlgraphics.commons;
requires transitive io.sf.carte.echosvg.util;
requires io.sf.carte.echosvg.i18n;
requires transitive io.sf.carte.css4j;
requires io.sf.carte.util;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires transitive org.w3c.dom.svg;
requires xmlgraphics.commons;
}
2 changes: 0 additions & 2 deletions echosvg-dom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ dependencies {
exclude group: 'xml-apis', module: 'xml-apis'
}
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
automaticModule("xmlgraphics-commons-${xmlgraphicsCommonsVersion}.jar", 'xmlgraphics.commons')
automaticModule("xalan-${xalanVersion}.jar", 'xalan')
}
Expand Down
3 changes: 1 addition & 2 deletions echosvg-dom/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
requires transitive io.sf.carte.echosvg.css;
requires io.sf.carte.echosvg.external;
requires transitive io.sf.carte.echosvg.xml;
requires io.sf.carte.css4j;
requires io.sf.carte.echosvg.i18n;
requires transitive java.xml;
requires transitive jdk.xml.dom;
requires xml.apis.ext;
requires xalan;
}
2 changes: 1 addition & 1 deletion echosvg-ext/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
exports io.sf.carte.echosvg.w3c.dom;
exports io.sf.carte.echosvg.w3c.dom.events;

requires java.xml;
requires transitive java.xml;
}
8 changes: 1 addition & 7 deletions echosvg-extension/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
plugins {
id 'echosvg.java-conventions'
id 'de.jjohannes.extra-java-module-info'
}

dependencies {
api project(':echosvg-awt-util')
api project(':echosvg-bridge')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
api project(':svgom-api')
}

description = 'io.sf.carte:echosvg-extension'
Expand Down
25 changes: 12 additions & 13 deletions echosvg-extension/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@
* limitations under the License.
*/
module io.sf.carte.echosvg.extension {
exports io.sf.carte.echosvg.extension;
exports io.sf.carte.echosvg.extension.svg;
exports io.sf.carte.echosvg.extension;
exports io.sf.carte.echosvg.extension.svg;

requires io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.bridge;
requires io.sf.carte.echosvg.css;
requires io.sf.carte.echosvg.gvt;
requires io.sf.carte.echosvg.parser;
requires io.sf.carte.echosvg.dom;
requires io.sf.carte.echosvg.anim;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires xml.apis.ext;
requires io.sf.carte.echosvg.bridge;
requires io.sf.carte.echosvg.gvt;
requires io.sf.carte.echosvg.parser;
requires transitive io.sf.carte.echosvg.dom;
requires io.sf.carte.echosvg.anim;
requires io.sf.carte.echosvg.constants;
requires java.desktop;

requires jdk.xml.dom;
requires transitive org.w3c.dom.svg;
}
2 changes: 1 addition & 1 deletion echosvg-gui-util/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

requires io.sf.carte.echosvg.util;
requires io.sf.carte.echosvg.xml;
requires java.desktop;
requires transitive java.desktop;
}
3 changes: 1 addition & 2 deletions echosvg-parser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ plugins {
dependencies {
api project(':echosvg-awt-util')
api project(':echosvg-xml')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
api project(':svgom-api')
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
automaticModule("xmlgraphics-commons-${xmlgraphicsCommonsVersion}.jar", 'xmlgraphics.commons')
}

Expand Down
11 changes: 6 additions & 5 deletions echosvg-parser/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
* limitations under the License.
*/
module io.sf.carte.echosvg.parser {
exports io.sf.carte.echosvg.parser;
exports io.sf.carte.echosvg.parser;

requires io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.xml;
requires java.xml;
requires xml.apis.ext;
requires io.sf.carte.echosvg.awt;
requires io.sf.carte.echosvg.xml;
requires io.sf.carte.echosvg.i18n;
requires transitive org.w3c.dom.svg;
requires transitive java.desktop;
}
1 change: 0 additions & 1 deletion echosvg-script/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {
extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("rhino-${rhinoVersion}.jar", 'org.mozilla.rhino')
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
}

description = 'io.sf.carte:echosvg-script'
Expand Down
5 changes: 2 additions & 3 deletions echosvg-script/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
exports io.sf.carte.echosvg.script.rhino;
exports io.sf.carte.echosvg.script;

requires io.sf.carte.echosvg.util;
requires io.sf.carte.echosvg.anim;
requires java.xml;
requires io.sf.carte.echosvg.i18n;
requires transitive java.xml;
requires org.mozilla.rhino;
requires xml.apis.ext;
}
8 changes: 1 addition & 7 deletions echosvg-slideshow/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
plugins {
id 'echosvg.java-conventions'
id 'de.jjohannes.extra-java-module-info'
}

dependencies {
api project(':echosvg-bridge')
api project(':echosvg-gvt')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
api project(':svgom-api')
}

description = 'io.sf.carte:echosvg-slideshow'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-slideshow/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

requires io.sf.carte.echosvg.bridge;
requires io.sf.carte.echosvg.gvt;
requires xml.apis.ext;
requires transitive org.w3c.dom.svg;
}
8 changes: 1 addition & 7 deletions echosvg-svg-dom/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
plugins {
id 'echosvg.java-conventions'
id 'de.jjohannes.extra-java-module-info'
}

dependencies {
api project(':echosvg-awt-util')
api project(':echosvg-dom')
api project(':echosvg-parser')
api "xml-apis:xml-apis-ext:${xmlApisExtVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule("xml-apis-ext-${xmlApisExtVersion}.jar", 'xml.apis.ext')
api project(':svgom-api')
}

description = 'io.sf.carte:echosvg-svg-dom'
Expand Down
16 changes: 6 additions & 10 deletions echosvg-svg-dom/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@
* limitations under the License.
*/
module io.sf.carte.echosvg.dom.svg {
exports io.sf.carte.echosvg.dom.svg12;
exports io.sf.carte.echosvg.dom.svg;
exports io.sf.carte.echosvg.dom.svg12;
exports io.sf.carte.echosvg.dom.svg;

requires io.sf.carte.echosvg.awt;
requires transitive io.sf.carte.echosvg.css;
requires io.sf.carte.echosvg.parser;
requires transitive io.sf.carte.echosvg.dom;
requires java.desktop;
requires java.xml;
requires jdk.xml.dom;
requires xml.apis.ext;
requires io.sf.carte.echosvg.awt;
requires transitive io.sf.carte.echosvg.css;
requires transitive io.sf.carte.echosvg.parser;
requires transitive io.sf.carte.echosvg.dom;
}
Loading

0 comments on commit 856f700

Please sign in to comment.