What is the recommended way to to do the build time enhancement with Gradle in an ant based build environment?
Issue
- In contrast to the maven plugin (as well as the ant task we used so far), the gradle enhancement plugin is directly tied to the gradle
compileJavatask. This makes it necessary for us to overwrite thecompileJavatask (to actually do nothing) because our application is compiled by our ant build environment. Of course, this is more a kind of work around to make enhancement by the gradle plugin possible at all than a correct approach. In order to be clean here, we would need a separation of the enhancement task from the compileJava task which would make a more flexible usage possible.- Can the gradle enhancement task be provided in form of an independent task (separated from compileJava) in order to allow a more flexible application?
- What is the recommended way to to do the buildtime enhancement with Gradle in our ant based build environment? Is overwriting the compileJava task a valid and stable approach?`
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2
- 7.1.x
- Ant based build environment
- Gradle plugin for build time enhancements
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.