Skip to content

Instantly share code, notes, and snippets.

@mystelynx
Created April 26, 2013 04:45
Show Gist options
  • Save mystelynx/5465081 to your computer and use it in GitHub Desktop.
Save mystelynx/5465081 to your computer and use it in GitHub Desktop.
gradleでebeanをenhanceする
configurations {
ebean
}
dependencies {
ebean group:'org.avaje', name:'ebean', version:'2.8.1'
}
task ebeanEnhancer {
doLast {
ant.taskdef(name: 'ebeanEnhance', classname: 'com.avaje.ebean.enhance.ant.AntEnhanceTask', classpath: configurations.ebean.asPath)
println(buildDir.getAbsolutePath() + '/class/main')
ant.ebeanEnhance(
classSource: buildDir.getAbsolutePath() + '/classes/main',
packages: 'com.github.mystelynx.example.model.*',
transformArgs: 'debug=5'
)
}
}
classes {
dependsOn ebeanEnhancer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment