You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying the moduleJvmArgs block in my service I noticed that my tests were continuing to fail. Digging in I noticed that the MANIFEST.MF did not contain my updated exports. To repro:
Add the following to your favorite repo build.gradle:
Open the "resultant jar" (its the same) and note the Exports entry in the MANIFEST.MF are unchanged.
Run ./gradlew :MODULE:clean :MODULE:jar
Open the new jar and note the Exports entry in the MANIFEST.MF are now updated.
Digging in to the Gradle build scans I see that Gradle is considering the jar task as UP-TO-DATE. Ping me if you want the links to the Gradle buildscans.
What did you want to happen?
Changing the metadata of the module should invalidate the resulting artifacts and cause Gradle to rebuild the jars.
The text was updated successfully, but these errors were encountered:
The BaselineModuleJvmArgs plugin configures several tasks from the
'java' plugin to use values from the 'moduleJvmArgs' extension (e.g. to
update compiler arguments, output values to the jar manifest, etc.).
However, when the value on the extension changes, those tasks are not
re-run.
To fix that, add input properties for each task that uses moduleJvmArgs
so that when the extension value changes, the task will no longer be
up-to-date.
Fixes#2476
What happened?
When modifying the
moduleJvmArgs
block in my service I noticed that my tests were continuing to fail. Digging in I noticed that theMANIFEST.MF
did not contain my updatedexports
. To repro:build.gradle
:./gradlew :MODULE:jar
Exports
entry in theMANIFEST.MF
./gradlew :MODULE:jar
Exports
entry in theMANIFEST.MF
are unchanged../gradlew :MODULE:clean :MODULE:jar
Exports
entry in theMANIFEST.MF
are now updated.Digging in to the Gradle build scans I see that Gradle is considering the
jar
task asUP-TO-DATE
. Ping me if you want the links to the Gradle buildscans.What did you want to happen?
Changing the metadata of the module should invalidate the resulting artifacts and cause Gradle to rebuild the jars.
The text was updated successfully, but these errors were encountered: