Skip to content

Instantly share code, notes, and snippets.

@donat
Created December 22, 2020 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donat/6e2e669ac404fe0d23e89d6112d19a58 to your computer and use it in GitHub Desktop.
Save donat/6e2e669ac404fe0d23e89d6112d19a58 to your computer and use it in GitHub Desktop.
Gradle task to ASMify a Gradle class
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