Hi to all,
we have migrated our ant build to gradle, building with gradle for quite some time.
We are calling own generator tasks, which was realized by creating a new classloader with all urls from compile classpath and call the generator via reflection. This leads to some classloader leaks (log4j, guava, guice to name only some). We are now re-thinking how we should do this in the future to get the daemon running…
Solution 1: Move the generator to the buildscript classpath (We also have deps to guava, jaxb, xtext, guice…which can interact with gradle’s own classpath?)
Solution 2: Fork a new java process with project.javaExec() per generator call (classpath length on windows might be too long?)
So my question is, what is from gradle and gradleware point of view the way to go (the way to expect least problems and to be most standards-compliant.
Would be nice if you can give me a direction.