-
Notifications
You must be signed in to change notification settings - Fork 362
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
Conversation
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
src/docTest/groovy/com/bmuschko/gradle/docker/RemoteApiPluginDocumentationTest.groovy
Outdated
Show resolved
Hide resolved
src/functTest/groovy/com/bmuschko/gradle/docker/AbstractFunctionalTest.groovy
Outdated
Show resolved
Hide resolved
…onalTest.groovy Co-authored-by: Przemek Bielicki <[email protected]>
src/functTest/groovy/com/bmuschko/gradle/docker/DockerRemoteApiPluginFunctionalTest.groovy
Show resolved
Hide resolved
src/functTest/groovy/com/bmuschko/gradle/docker/DockerRemoteApiPluginFunctionalTest.groovy
Show resolved
Hide resolved
...functTest/groovy/com/bmuschko/gradle/docker/tasks/image/DockerSaveImageFunctionalTest.groovy
Outdated
Show resolved
Hide resolved
src/main/java/com/bmuschko/gradle/docker/internal/DefaultDockerUrlValueSource.java
Show resolved
Hide resolved
This reverts commit e93d41b.
src/test/groovy/com/bmuschko/gradle/docker/internal/RegistryAuthLocatorTest.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work 🎉
src/functTest/groovy/com/bmuschko/gradle/docker/DockerRemoteApiPluginFunctionalTest.groovy
Show resolved
Hide resolved
src/main/java/com/bmuschko/gradle/docker/internal/DefaultDockerUrlValueSource.java
Show resolved
Hide resolved
@@ -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 | |||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
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