Skip to content

Commit

Permalink
Gradle: make xml-apis a compile-only dependency
Browse files Browse the repository at this point in the history
This change is the result of executing:

sed -i -z 's#implementation "xml-apis:xml-apis:$xmlApisVersion"#compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat#' */build.gradle
  • Loading branch information
carlosame committed Aug 12, 2024
1 parent 2499876 commit 3a7fb4a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion echosvg-anim/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

dependencies {
api project(':echosvg-svg-dom')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-anim'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-bridge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
api project(':echosvg-gvt')
api project(':echosvg-script')
api "io.sf.graphics:legacy-colors:${legacyColorsVersion}"
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-bridge'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-dom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
api project(':echosvg-ext')
api project(':echosvg-xml')
implementation project(':echosvg-i18n')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
api "io.sf.carte:xml-dtd:${xmlDtdVersion}"
}

Expand Down
2 changes: 1 addition & 1 deletion echosvg-extension/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
dependencies {
api project(':echosvg-awt-util')
api project(':echosvg-bridge')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-extension'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-script/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
dependencies {
implementation project(':echosvg-anim')
api "org.mozilla:rhino:${rhinoVersion}"
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-script'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-svg-dom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
dependencies {
api project(':echosvg-dom')
api project(':echosvg-parser')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-svg-dom'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-swing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
dependencies {
api project(':echosvg-bridge')
api project(':echosvg-gui-util')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-swing'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-test-scripts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

dependencies {
implementation project(':echosvg-bridge')
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-test-scripts'
Expand Down
2 changes: 1 addition & 1 deletion echosvg-transcoder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
api project(':echosvg-svggen')
implementation project(':echosvg-codec')
implementation "io.sf.carte:css4j-awt:$css4jAwtVersion"
implementation "xml-apis:xml-apis:$xmlApisVersion"
compileOnly "xml-apis:xml-apis:$xmlApisVersion" // Required by Java 8 compat
}

description = 'io.sf.carte:echosvg-transcoder'
Expand Down

0 comments on commit 3a7fb4a

Please sign in to comment.