-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JarBuilder still runs the bnd Builder even though it is up to date #74
Comments
A clipping of a Gradle 2.14 debug log if it helps, with some things taken our for brevity.
|
I think this might have to do with the manifest being generated. From a clean state, it seems to run the JarBuilder.build method once while generating the manifest in the writeManifestTo method, and again while generating the jar in the writeJarTo method.
So the issue on a repeated build I assume has to do with the manifest generation calling the build method. Is that avoidable on an up-to-date build? |
With further digging I realize that the builder is run to generate the manifest to determine if it is up to date. Getting around this might be tricky. |
We have a large subproject of our build that applies the gradle-bundle-plugin. We found that the plugin will run the aQute.bnd.osgi.Builder, and in the end mark the task as up to date. Being a large subproject with a large amount of classes, this eats up over a minute of build time for an 'up-to-date' task. I think the up to date check should prevent the Builder from being run, to save on build time.
Edit: This was with Gradle 2.14, but I tested with Gradle 4.2-rc-2 as well, so the gradle version does not seem to have an effect.
The text was updated successfully, but these errors were encountered: