Ilya Ryzhenkov | 6085cfe | 2015-10-23 14:53:04 +0300 | [diff] [blame] | 1 | # Include java runtime classes |
| 2 | -libraryjars <java.home>/lib/rt.jar |
| 3 | |
| 4 | # Keep filenames and line numbers |
| 5 | -keepattributes SourceFile, LineNumberTable |
| 6 | |
| 7 | -target 1.6 |
| 8 | -dontoptimize |
| 9 | -dontobfuscate |
| 10 | |
| 11 | -ignorewarnings |
| 12 | # -keepdirectories |
| 13 | |
| 14 | -dontwarn org.jetbrains.annotations.** |
| 15 | -dontwarn org.apache.commons.httpclient.** |
| 16 | -dontwarn org.apache.tools.ant.** |
| 17 | -dontwarn org.codehaus.plexus.** |
| 18 | -dontwarn hidden.org.codehaus.plexus.** |
| 19 | -dontwarn org.fusesource.** |
| 20 | -dontwarn org.jaxen.jdom.** |
| 21 | |
| 22 | -keep class org.jetbrains.dokka.** { *; } |
| 23 | -keep class org.fusesource.** { *; } |
| 24 | -keep class org.jdom.input.JAXPParserFactory { *; } |
| 25 | |
| 26 | -keep class org.jetbrains.annotations.** { |
| 27 | public protected *; |
| 28 | } |
| 29 | |
| 30 | -keep class javax.inject.** { |
| 31 | public protected *; |
| 32 | } |
| 33 | |
| 34 | -keep class org.jetbrains.kotlin.** { |
| 35 | public protected *; |
| 36 | } |
| 37 | |
| 38 | -keep class org.jetbrains.kotlin.compiler.plugin.** { |
| 39 | public protected *; |
| 40 | } |
| 41 | |
| 42 | -keep class org.jetbrains.kotlin.extensions.** { |
| 43 | public protected *; |
| 44 | } |
| 45 | |
| 46 | -keep class org.jetbrains.org.objectweb.asm.Opcodes { *; } |
| 47 | |
| 48 | -keep class org.jetbrains.kotlin.codegen.extensions.** { |
| 49 | public protected *; |
| 50 | } |
| 51 | |
| 52 | -keepclassmembers class com.intellij.openapi.vfs.VirtualFile { |
| 53 | public InputStream getInputStream(); |
| 54 | } |
| 55 | |
| 56 | -keep class jet.** { |
| 57 | public protected *; |
| 58 | } |
| 59 | |
| 60 | -keep class com.intellij.psi.** { |
| 61 | public protected *; |
| 62 | } |
| 63 | |
| 64 | # for kdoc & dokka |
| 65 | -keep class com.intellij.openapi.util.TextRange { *; } |
| 66 | -keep class com.intellij.lang.impl.PsiBuilderImpl* { |
| 67 | public protected *; |
| 68 | } |
| 69 | -keep class com.intellij.openapi.util.text.StringHash { *; } |
| 70 | |
| 71 | # for gradle plugin and other server tools |
| 72 | -keep class com.intellij.openapi.util.io.ZipFileCache { public *; } |
| 73 | |
| 74 | # for j2k |
| 75 | -keep class com.intellij.codeInsight.NullableNotNullManager { public protected *; } |
| 76 | |
| 77 | -keepclassmembers enum * { |
| 78 | public static **[] values(); |
| 79 | public static ** valueOf(java.lang.String); |
| 80 | } |
| 81 | |
| 82 | -keepclassmembers class * { |
| 83 | ** toString(); |
| 84 | ** hashCode(); |
| 85 | void start(); |
| 86 | void stop(); |
| 87 | void dispose(); |
| 88 | } |
| 89 | |
| 90 | -keepclassmembers class org.jetbrains.org.objectweb.asm.Opcodes { |
| 91 | *** ASM5; |
| 92 | } |
| 93 | |
| 94 | -keepclassmembers class org.jetbrains.org.objectweb.asm.ClassReader { |
| 95 | *** SKIP_CODE; |
| 96 | *** SKIP_DEBUG; |
| 97 | *** SKIP_FRAMES; |
| 98 | } |
| 99 | |
| 100 | |