Created
December 22, 2020 13:30
-
-
Save donat/6e2e669ac404fe0d23e89d6112d19a58 to your computer and use it in GitHub Desktop.
Gradle task to ASMify a Gradle class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java-library' | |
} | |
dependencies { | |
implementation 'org.ow2.asm:asm-util:7.3.1' | |
implementation gradleApi() | |
} | |
repositories { | |
jcenter() | |
} | |
tasks.register('printAsm', JavaExec) { | |
main = 'org.objectweb.asm.util.ASMifier' | |
classpath = sourceSets.main.runtimeClasspath | |
args 'org.gradle.api.tasks.bundling.AbstractArchiveTask' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment