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

Make DockerRemoteApi plugin configuration cache compatible for Gradle 8.1+ #1193

Merged
merged 8 commits into from Sep 20, 2023

Conversation

Jocce-Nilsson
Copy link
Contributor

Using Gradle 8.1 or above will make Gradle gather information on file access during configuration time. If any of those files change until next time you run Gradle, the configuration cache is invalidated.

This PR delays the file checking for default value of the DockerExtension so that the files are not part of configuration cache input.

closes #1192

Configuration cache error is only present in 8+ versions
Test that configuration cache still compatible for Gradle 8.3
when docker sock files are changed between runs.
This will be created for the build and maintain configuration cache compatibility
as the values are not resolved during configuration time.

Add flag to set for integration test
…onalTest.groovy

Co-authored-by: Przemek Bielicki <przemek@gradle.com>
Copy link
Contributor

@pbielicki pbielicki left a comment

Choose a reason for hiding this comment

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

nice work 🎉

@@ -114,7 +115,7 @@ class DockerRemoteApiPluginFunctionalTest extends AbstractGroovyDslFunctionalTes
import com.bmuschko.gradle.docker.tasks.image.DockerPullImage
import com.bmuschko.gradle.docker.tasks.image.DockerRemoveImage
import com.bmuschko.gradle.docker.tasks.image.Dockerfile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

auto formatting, is this OK to remove @bmuschko?

Copy link
Owner

Choose a reason for hiding this comment

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

That's fine. Seem like a tab or tabs ended up here.

Copy link
Owner

@bmuschko bmuschko left a comment

Choose a reason for hiding this comment

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

Thanks for your pull request. I am going to release a patch soon.

@bmuschko bmuschko merged commit 7c63809 into bmuschko:master Sep 20, 2023
2 checks passed
@bmuschko bmuschko added this to the v9.3.3 milestone Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting/Stopping docker daemon invalidates Gradle configuration cache
3 participants