Skip to content

Commit

Permalink
Relocate aalto-xml and stax2-api dependencies in embeddable compiler …
Browse files Browse the repository at this point in the history
…(KT-59631)

Two additional dependencies were added during 213 platform migration:
com.fasterxml:aalto-xml
org.codehaus.woodstox:stax2-api

Packages were not relocated and now might cause failures such as

```
Caused by: java.lang.NoSuchMethodError: 'void com.fasterxml.aalto.in.ReaderConfig.setXMLResolver(javax.xml.stream.XMLResolver)'
```

if proguard classes of kotlin-compiler-embeddable are registered early
in the classpath.

(cherry picked from commit d4c8636)
  • Loading branch information
goodwinnk committed Jun 27, 2023
1 parent 56a7789 commit 2427b51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildSrc/src/main/kotlin/embeddable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ val packagesToRelocate =
"net.jpountz",
"one.util.streamex",
"it.unimi.dsi.fastutil",
"kotlinx.collections.immutable"
"kotlinx.collections.immutable",
"com.fasterxml",
"org.codehaus"
)

// The shaded compiler "dummy" is used to rewrite dependencies in projects that are used with the embeddable compiler
Expand Down

0 comments on commit 2427b51

Please sign in to comment.