-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implement update checks #2214
Implement update checks #2214
Conversation
…nerTools/jib into i2193-update-checks
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.
First pass. I'll go over once more later.
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildTarMojo.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
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.
Looks good to me. Just some minor comments.
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java
Outdated
Show resolved
Hide resolved
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildImageTask.java
Outdated
Show resolved
Hide resolved
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildTarTask.java
Outdated
Show resolved
Hide resolved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java
Outdated
Show resolved
Hide resolved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildImageMojo.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java
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.
LGTM, just waiting on @chanseokoh since he looked at some parts I didn't go too deep into.
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
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.
Looks good to me. Some minor points that I am fine with either way.
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MojoCommon.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
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.
While we're at it, some minor comments.
...lugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/UpdateCheckerTest.java
Outdated
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TaskCommon.java
Outdated
Show resolved
Hide resolved
...on/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
Show resolved
Hide resolved
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/UpdateChecker.java
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.
LGTM?
Fixes #2193.
A couple changes from the initial design:
Files.setLastModifiedTime()
isn't supported on all platforms.