Just wondering if it's possible to add enhancement in the gradle build file after compilation?
an example of this, for an IntelliJ gradle based project would be very helpful.
David
Just wondering if it's possible to add enhancement in the gradle build file after compilation?
an example of this, for an IntelliJ gradle based project would be very helpful.
David
The following seems to work:
task enhance(type: JavaExec) { main = 'com.objectdb.Enhancer' classpath = sourceSets.main.runtimeClasspath args '-cp', 'src/main/groovy', 'app.model.*', 'app.model_dir_two.*' } compileGroovy.finalizedBy(enhance)
note, for java, you want compileJava instead of compileGroovy.