As part of a significant upgrade of a Gradle build system I maintain I found myself needing to:
Fix a bug around unclosed URLClassLoader instance and some kind of bad interaction with Gradle daemons.
Support multiple source-sets and multiple resultant artifacts.
I ended up rewriting the bulk of the plugin with a tighter integration with the source-set concept, and with more aggressive use of the more recent lazy-evaluation concepts in Gradle.
This pull request is the result of that rewrite. I'm not suggesting this needs to be merged verbatim, but I figured I would offer the result here in case it is of interest.
As part of a significant upgrade of a Gradle build system I maintain I found myself needing to:
URLClassLoader
instance and some kind of bad interaction with Gradle daemons.I ended up rewriting the bulk of the plugin with a tighter integration with the source-set concept, and with more aggressive use of the more recent lazy-evaluation concepts in Gradle.
This pull request is the result of that rewrite. I'm not suggesting this needs to be merged verbatim, but I figured I would offer the result here in case it is of interest.