Relocate service definition files for kotlin-reflect
See http://imperceptiblethoughts.com/shadow/#merging_service_descriptor_files #KT-16810 Fixed
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
-keep class kotlin.reflect.jvm.internal.ReflectionFactoryImpl { public protected *; }
|
-keep class kotlin.reflect.jvm.internal.ReflectionFactoryImpl { public protected *; }
|
||||||
|
|
||||||
|
-keep class * implements kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition { public protected *; }
|
||||||
|
|
||||||
-keepclassmembers enum * {
|
-keepclassmembers enum * {
|
||||||
public static **[] values();
|
public static **[] values();
|
||||||
public static ** valueOf(java.lang.String);
|
public static ** valueOf(java.lang.String);
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ task reflectShadowJar(type: ShadowJar) {
|
|||||||
configurations = [project.configurations.shadows]
|
configurations = [project.configurations.shadows]
|
||||||
relocate 'org.jetbrains.kotlin', 'kotlin.reflect.jvm.internal.impl'
|
relocate 'org.jetbrains.kotlin', 'kotlin.reflect.jvm.internal.impl'
|
||||||
relocate 'javax.inject', 'kotlin.reflect.jvm.internal.impl.javax.inject'
|
relocate 'javax.inject', 'kotlin.reflect.jvm.internal.impl.javax.inject'
|
||||||
|
mergeServiceFiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
createScriptTask(project, "stripMetadata") {
|
createScriptTask(project, "stripMetadata") {
|
||||||
|
|||||||
Reference in New Issue
Block a user