You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please check the User Guide before submitting "how do I do 'x'?" questions!
Shadow Version
com.github.johnrengelman:shadow:8.1.1
Gradle Version
Gradle 8.2
JVM: 17.0.3 (Azul Systems, Inc. 17.0.3+7-LTS)
Expected Behaviour
The contents of the relocated classes (deprecatedpain.org.apache.axis2.description.AxisService) should not contain relocated imports of JDK classes like org.w3c.dom.Document
One suspicion is that the transitive dependency (jaxen:jaxen:1.1.6) has one class with a package name overlap: org.w3c.dom.UserDataHandler and that somehow causes relocation to consider everything under org.w3c.dom as relocated.
Though not reproduced in the below scripts, another observed example was import deprecatedpain.org.xml.sax.SAXException
Please check the User Guide before submitting "how do I do 'x'?" questions!
Shadow Version
com.github.johnrengelman:shadow:8.1.1
Gradle Version
Expected Behaviour
The contents of the relocated classes (
deprecatedpain.org.apache.axis2.description.AxisService
) should not contain relocated imports of JDK classes likeorg.w3c.dom.Document
Actual Behavior
The below imports are incorrectly relocated.
One suspicion is that the transitive dependency (
jaxen:jaxen:1.1.6
) has one class with a package name overlap:org.w3c.dom.UserDataHandler
and that somehow causes relocation to consider everything underorg.w3c.dom
as relocated.Though not reproduced in the below scripts, another observed example was
import deprecatedpain.org.xml.sax.SAXException
Gradle Build Script(s)
The following can be used to reproduce: https://github.com/adrianbk/axis2-shadow
./gradlew soap-service:shadowJar the-monolith:compileJava the-monolith:runLoader
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)jar contents: https://gist.github.com/adrianbk/77f48e6f1b37416560dd42099d31e0f7
The text was updated successfully, but these errors were encountered: