Skip to content

Commit

Permalink
Shade JDK in a separate bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Aug 8, 2016
1 parent 6ea629a commit 30de4e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,31 @@ tasks.withType(Javadoc) {
// Relocated dependencies are removed from the generated pom
shadowJar {
configurations = [project.configurations.jdk]
classifier = null
relocate 'com.sun', 'com.netflix.devinsight.shaded.com.sun'
relocate 'sun', 'com.netflix.devinsight.shaded.sun'
classifier = 'jdkbundle'

exclude 'sun/**/*'
exclude 'org/relaxng/**/*'
exclude 'META-INF/services/*'
exclude 'com/sun/xml/**/*'
exclude 'com/sun/jarsigner/**/*'
exclude 'com/sun/javadoc/**/*'
exclude 'com/sun/istack/**/*'
exclude 'com/sun/xml/**/*'

relocate 'com.sun', 'com.netflix.devinsight.shaded.com.sun'


mergeServiceFiles {
exclude 'META-INF/services/com.sun.*'
}
}

jar.deleteAllActions()
jar.dependsOn shadowJar
publishing {
publications {
nebula(MavenPublication) {
artifact shadowJar {
classifier = 'jdkbundle'
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MethodMatcherTest: AbstractRefactorTest() {
fun matchOnInnerClass() {
val b = java("""
|public class B {
| public class C {
| public static class C {
| public void foo() {}
| }
|}
Expand Down

0 comments on commit 30de4e2

Please sign in to comment.