|
1 | 1 | /* |
2 | 2 |
|
3 | | - Copyright (c) 2019-2024, C. Amengual. |
| 3 | + Copyright (c) 2019-2025, C. Amengual. |
4 | 4 |
|
5 | 5 | Licensed under a BSD-style License. You can find the license here: |
6 | 6 | https://css4j.github.io/LICENSE.txt |
@@ -38,22 +38,35 @@ dependencies { |
38 | 38 | implementation 'io.sf.carte:css4j-dom4j:4.2' |
39 | 39 | implementation 'io.sf.carte:echosvg-transcoder:1.2.3' |
40 | 40 | implementation ('org.apache.xmlgraphics:batik-transcoder:1.18') { |
| 41 | + // Already available from java.xml |
| 42 | + exclude group: 'xml-apis', module: 'xml-apis' |
41 | 43 | // Use packages from web-apis instead |
42 | 44 | exclude group: 'xml-apis', module: 'xml-apis-ext' |
43 | 45 | } |
44 | 46 | implementation ('org.apache.xmlgraphics:batik-codec:1.18') { |
| 47 | + // Already available from java.xml |
| 48 | + exclude group: 'xml-apis', module: 'xml-apis' |
45 | 49 | // Use packages from web-apis instead |
46 | 50 | exclude group: 'xml-apis', module: 'xml-apis-ext' |
47 | 51 | } |
48 | 52 | implementation 'org.w3c.css:sac:1.3' // Required by Batik |
49 | 53 | implementation 'nu.validator:htmlparser:1.4.16' |
50 | 54 | implementation 'org.jsoup:jsoup:1.18.3' |
| 55 | + |
| 56 | +} |
| 57 | + |
| 58 | +configurations.all { |
| 59 | + exclude group: 'jaxen', module: 'jaxen' |
51 | 60 | } |
52 | 61 |
|
53 | 62 | group = 'io.sf.carte' |
54 | 63 | version = '0.7' |
55 | 64 | description = 'JMH benchmark for CSS4J and EchoSVG' |
56 | | -java.sourceCompatibility = JavaVersion.VERSION_17 |
| 65 | + |
| 66 | +java { |
| 67 | + sourceCompatibility = JavaVersion.VERSION_17 |
| 68 | + targetCompatibility = JavaVersion.VERSION_17 |
| 69 | +} |
57 | 70 |
|
58 | 71 | sourceSets { |
59 | 72 | main { |
@@ -147,7 +160,24 @@ tasks.register('jmhJar', Jar) { |
147 | 160 | } |
148 | 161 | with jar |
149 | 162 | duplicatesStrategy = 'exclude' |
| 163 | + // Modularity does not apply here |
150 | 164 | exclude 'module-info.class' |
| 165 | + // Provided by Java SE |
| 166 | + exclude 'javax/**' |
| 167 | + // The next ones are provided by java.xml module |
| 168 | + exclude 'org/w3c/dom/*' |
| 169 | + exclude 'org/w3c/dom/bootstrap/**' |
| 170 | + exclude 'org/w3c/dom/events/**' |
| 171 | + exclude 'org/w3c/dom/ls/**' |
| 172 | + exclude 'org/w3c/dom/ranges/**' |
| 173 | + exclude 'org/w3c/dom/traversal/**' |
| 174 | + exclude 'org/w3c/dom/views/**' |
| 175 | + exclude 'org/xml/**' |
| 176 | + // Provided by jdk.xml.dom module |
| 177 | + exclude 'org/w3c/dom/css/**' |
| 178 | + exclude 'org/w3c/dom/html/**' |
| 179 | + exclude 'org/w3c/dom/stylesheets/**' |
| 180 | + exclude 'org/w3c/dom/xpath/**' |
151 | 181 | } |
152 | 182 |
|
153 | 183 | build.dependsOn jmhJar |
|
0 commit comments