Skip to content

Commit

Permalink
Remove xmlgraphics-commons
Browse files Browse the repository at this point in the history
Closes #99.
  • Loading branch information
carlosame committed Jul 31, 2024
1 parent 163d453 commit ade2a91
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 63 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ repositories {
releasesOnly()
}
content {
includeGroup 'com.github.css4j'
includeGroup 'io.sf.carte'
includeGroup 'io.sf.jclf'
includeGroup 'io.sf.graphics'
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions buildSrc/src/main/groovy/echosvg.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ repositories {
releasesOnly()
}
content {
includeGroup "io.sf.carte"
includeGroup "io.sf.jclf"
includeGroup 'io.sf.carte'
includeGroup 'io.sf.graphics'
includeGroup 'io.sf.jclf'
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions echosvg-all/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
id 'org.gradlex.extra-java-module-info'
id 'org.ajoberstar.grgit'
id 'echosvg.java-conventions'
}
Expand All @@ -18,11 +17,6 @@ dependencies {
api project(':echosvg-svgrasterizer')
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

publishing.publications.maven(MavenPublication).pom {
description = "EchoSVG aggregate artifact"
}
Expand Down
8 changes: 1 addition & 7 deletions echosvg-awt-util/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
plugins {
id 'echosvg.java-conventions'
id 'org.gradlex.extra-java-module-info'
}

dependencies {
api project(':echosvg-util')
api "io.sf.graphics:legacy-colors:${legacyColorsVersion}"
implementation project(':echosvg-i18n')
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

description = 'io.sf.carte:echosvg-awt-util'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
import java.awt.geom.Rectangle2D;
import java.awt.image.ColorModel;

import io.sf.carte.echosvg.ext.awt.MultipleGradientPaint.ColorSpaceEnum;
import io.sf.carte.echosvg.ext.awt.MultipleGradientPaint.CycleMethodEnum;

/**
* The <code>LinearGradientPaint</code> class provides a way to fill a
* {@link java.awt.Shape} with a linear color gradient pattern. The user may
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

package io.sf.carte.echosvg.ext.awt.color;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;

import io.sf.carte.echosvg.util.SoftReferenceCache;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;

/**
* This class manages a cache of soft references to named profiles that we have
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
import java.awt.image.RenderedImage;
import java.awt.image.renderable.RenderContext;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;

import io.sf.carte.echosvg.ext.awt.image.GraphicsUtil;
import io.sf.carte.echosvg.ext.awt.image.rendered.CachableRed;
import io.sf.carte.echosvg.ext.awt.image.rendered.ProfileRed;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;

/**
* Implements the interface expected from a color matrix operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import java.awt.image.RenderedImage;
import java.awt.image.WritableRaster;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;

/**
* This implementation of rendered image forces a color profile on its source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
import java.util.ListIterator;
import java.util.ServiceLoader;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;

import io.sf.carte.echosvg.ext.awt.image.URLImageCache;
import io.sf.carte.echosvg.ext.awt.image.renderable.Filter;
import io.sf.carte.echosvg.ext.awt.image.renderable.ProfileRable;
import io.sf.carte.echosvg.util.ParsedURL;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;

/**
* This class handles the registered Image tag handlers. These are instances of
Expand Down
6 changes: 3 additions & 3 deletions echosvg-awt-util/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
requires transitive io.sf.carte.echosvg.util;
requires io.sf.carte.echosvg.i18n;

// org.apache.xmlgraphics.commons should be a transitive dependency due to
// ICCColorSpaceWithIntent from commons being used in this module's API.
requires org.apache.xmlgraphics.commons;
// It is a transitive dependency due to
// ICCColorSpaceWithIntent being used in this module's API.
requires transitive io.sf.graphics.legacy.colors;

requires java.desktop;

Expand Down
8 changes: 1 addition & 7 deletions echosvg-bridge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
plugins {
id 'echosvg.java-conventions'
id 'org.gradlex.extra-java-module-info'
}

dependencies {
api project(':echosvg-anim')
api project(':echosvg-gvt')
api project(':echosvg-script')
api "io.sf.graphics:legacy-colors:${legacyColorsVersion}"
implementation "xml-apis:xml-apis:$xmlApisVersion"
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

description = 'io.sf.carte:echosvg-bridge'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
import java.awt.color.ICC_Profile;
import java.io.IOException;

import org.apache.xmlgraphics.java2d.color.CIELabColorSpace;
import org.apache.xmlgraphics.java2d.color.ColorSpaces;
import org.apache.xmlgraphics.java2d.color.ColorWithAlternatives;
import org.apache.xmlgraphics.java2d.color.DeviceCMYKColorSpace;
import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;
import org.apache.xmlgraphics.java2d.color.NamedColorSpace;
import org.apache.xmlgraphics.java2d.color.profile.NamedColorProfile;
import org.apache.xmlgraphics.java2d.color.profile.NamedColorProfileParser;
import io.sf.graphics.java2d.color.CIELabColorSpace;
import io.sf.graphics.java2d.color.ColorSpaces;
import io.sf.graphics.java2d.color.ColorWithAlternatives;
import io.sf.graphics.java2d.color.DeviceCMYKColorSpace;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;
import io.sf.graphics.java2d.color.NamedColorSpace;
import io.sf.graphics.java2d.color.profile.NamedColorProfile;
import io.sf.graphics.java2d.color.profile.NamedColorProfileParser;
import org.w3c.dom.Element;
import org.w3c.dom.css.CSSPrimitiveValue;
import org.w3c.dom.css.CSSValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.awt.color.ICC_Profile;
import java.io.IOException;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;
import org.apache.xmlgraphics.java2d.color.RenderingIntent;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;
import io.sf.graphics.java2d.color.RenderingIntent;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent;
import org.apache.xmlgraphics.java2d.color.RenderingIntent;
import io.sf.graphics.java2d.color.ICCColorSpaceWithIntent;
import io.sf.graphics.java2d.color.RenderingIntent;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.events.DocumentEvent;
Expand Down
2 changes: 1 addition & 1 deletion echosvg-bridge/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
requires io.sf.carte.echosvg.parser;
requires io.sf.carte.echosvg.xml;

requires org.apache.xmlgraphics.commons;
requires io.sf.graphics.legacy.colors;

provides io.sf.carte.echosvg.script.InterpreterFactory
with io.sf.carte.echosvg.bridge.RhinoInterpreterFactory;
Expand Down
7 changes: 0 additions & 7 deletions echosvg-dom/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'echosvg.java-conventions'
id 'org.gradlex.extra-java-module-info'
}

dependencies {
Expand All @@ -10,12 +9,6 @@ dependencies {
implementation project(':echosvg-i18n')
implementation "xml-apis:xml-apis:$xmlApisVersion"
api "io.sf.carte:xml-dtd:${xmlDtdVersion}"
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

description = 'io.sf.carte:echosvg-dom'
Expand Down
7 changes: 0 additions & 7 deletions echosvg-parser/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
plugins {
id 'echosvg.java-conventions'
id 'org.gradlex.extra-java-module-info'
}

dependencies {
api project(':echosvg-awt-util')
api project(':echosvg-xml')
api project(':echosvg-i18n')
api "io.sf.carte:svgom-api:${svgomVersion}"
api "org.apache.xmlgraphics:xmlgraphics-commons:${xmlgraphicsCommonsVersion}"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false)
automaticModule('org.apache.xmlgraphics:xmlgraphics-commons', 'org.apache.xmlgraphics.commons')
}

description = 'io.sf.carte:echosvg-parser'
Expand Down
1 change: 1 addition & 0 deletions echosvg-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation "org.mozilla:rhino:${rhinoVersion}"
testImplementation "nu.validator:htmlparser:${htmlParserVersion}"
testImplementation "commons-io:commons-io:${commonsIOVersion}"
if (!project.getPluginManager().hasPlugin('eclipse')) {
testImplementation ("xml-apis:xml-apis:$xmlApisVersion")
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Dependency versions
extraJavaModuleInfoVersion=1.8
checkstyleVersion=10.17.0
grGitVersion=5.2.2
css4jVersion=4.2.2
css4jAwtVersion=4.0
xmlDtdVersion=4.3
rhinoVersion=1.7.15
legacyColorsVersion=1.0
svgomVersion=1.0.1
xmlApisVersion=1.4.01
xmlgraphicsCommonsVersion=[2.9,)
commonsIOVersion=2.16.1
htmlParserVersion=1.4.16
jclfTextVersion=5.0.1
junitVersion=5.10.3
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pluginManagement {
/*
* plugin versions are declared at gradle.properties file
*/
id 'org.gradlex.extra-java-module-info' version "${extraJavaModuleInfoVersion}"
id 'org.ajoberstar.grgit' version "${grGitVersion}"
}
}
Expand Down

0 comments on commit ade2a91

Please sign in to comment.