Relocate service definition files for kotlin-reflect

See
http://imperceptiblethoughts.com/shadow/#merging_service_descriptor_files

 #KT-16810 Fixed
This commit is contained in:
Alexander Udalov
2017-06-05 13:09:48 +03:00
parent 2b878f863c
commit a4931568ba
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@
-keep class kotlin.reflect.jvm.internal.ReflectionFactoryImpl { public protected *; }
-keep class * implements kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition { public protected *; }
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
@@ -95,6 +95,7 @@ task reflectShadowJar(type: ShadowJar) {
configurations = [project.configurations.shadows]
relocate 'org.jetbrains.kotlin', 'kotlin.reflect.jvm.internal.impl'
relocate 'javax.inject', 'kotlin.reflect.jvm.internal.impl.javax.inject'
mergeServiceFiles()
}
createScriptTask(project, "stripMetadata") {