File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
src/main/groovy/io/izzel/taboolib/gradle Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ class RelocateRemapper extends Remapper {
11
11
Map<String , String > slash
12
12
ClassRemapper remapper
13
13
14
+ List<String > skipKotlinAnnotations = [
15
+ " kotlin/annotation/Repeatable" ,
16
+ " kotlin/annotation/Retention" ,
17
+ " kotlin/annotation/Target" ,
18
+ " kotlin/jvm/JvmField" ,
19
+ " kotlin/jvm/JvmInline" ,
20
+ " kotlin/jvm/JvmStatic" ,
21
+ " kotlin/jvm/PurelyImplements" ,
22
+ " kotlin/Metadata" ,
23
+ " kotlin/Deprecated" ,
24
+ " kotlin/ReplaceWith" ,
25
+ ]
26
+
14
27
@Override
15
28
Object mapValue (Object value ) {
16
29
if (value instanceof String ) {
@@ -25,7 +38,7 @@ class RelocateRemapper extends Remapper {
25
38
@SuppressWarnings (' GroovyAccessibility' )
26
39
@Override
27
40
String map (String internalName ) {
28
- if (internalName. startsWith(' kotlin/Metadata ' ) ) {
41
+ if (skipKotlinAnnotations . any { internalName. startsWith(it) } ) {
29
42
return internalName
30
43
}
31
44
def match = slash. find { internalName. startsWith(it. key) }
You can’t perform that action at this time.
0 commit comments