Skip to content
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

Fix BuildTarTask input files to also include main SourceSet outputs #3793

Merged
merged 4 commits into from
Sep 30, 2022

Conversation

emmileaf
Copy link
Contributor

Fixes #3666.

It looks like this issue was introduced when making the switch to custom configurations in #3034. The previous use of mainSourceSet.getRuntimeClasspath() also included class and resource outputs for the main SourceSet that are now missed, so changes to the Java classes are no longer getting picked up as Gradle task inputs.

This PR adds back the main SourceSet’s outputs to GradleProjectPriperties.getInputFiles(). (Perhaps this will need to be updated if SourceSet is ever made configurable, but currently this fix is consistent with the previous behavior of using main.)

@emmileaf emmileaf marked this pull request as ready for review September 23, 2022 19:10
Copy link
Contributor

@elefeint elefeint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to CHANGELOG?

@emmileaf
Copy link
Contributor Author

Add to CHANGELOG?

Ahh thanks for this reminder! Will update changelog and merge.

@sonarcloud
Copy link

sonarcloud bot commented Sep 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@emmileaf emmileaf merged commit 68d4e62 into master Sep 30, 2022
@emmileaf emmileaf deleted the buildtar-task-patch branch September 30, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jibBuildTar is wrongly UP-TO-DATE
3 participants