ObjectDB ObjectDB

Enhancement from gradle build file


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.




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.*'


note, for java, you want compileJava instead of compileGroovy.

Post Reply