Skip to content

jib-gradle-plugin v1.5.0

Compare
Choose a tag to compare
@TadCordle TadCordle released this 16 Aug 18:50
· 1296 commits to master since this release

jib-gradle-plugin

Major Changes

  • Can now set timestamps (last modified time) of the files in the built image with jib.container.filesModificationTime. The value should either be EPOCH_PLUS_SECOND to set the timestamps to Epoch + 1 second (default behavior), or an ISO 8601 date time parsable with DateTimeFormatter.ISO_DATE_TIME such as 2019-07-15T10:15:30+09:00 or 2011-12-03T22:42:05Z
  • Can now set container creation timestamp with jib.container.creationTime. The value should be EPOCH, USE_CURRENT_TIMESTAMP, or an ISO 8601 date time
  • For Google Container Registry (gcr.io), Jib now tries Google Application Default Credentials (ADC) last when no credentials can be retrieved. ADC are available on many Google Cloud Platform (GCP) environments (such as Google Cloud Build, Google Compute Engine, Google Kubernetes Engine, and Google App Engine). Application Default Credentials can also be configured with gcloud auth application-default login locally or through the GOOGLE_APPLICATION_CREDENTIALS environment variable.
  • When building to a registry, Jib now skips downloading and caching base image layers that already exist in the target registry. This feature will be particularly useful in CI/CD environments. However, if you want to force caching base image layers locally, set the system property -Djib.alwaysCacheBaseImage=true
  • jib.container.useCurrentTimestamp has been deprecated in favor of jib.container.creationTime with USE_CURRENT_TIMESTAMP

See CHANGELOG.md for more details.