Comments (4)
3.3.1 included 3696e6c which changed creationTime to a Property.
you can set it like:
creationTime.set("USE_CURRENT_TIMESTAMP")
or by upgrading gradle to 8.2.1
or, in gradle 8.1.1, setting systemProp.org.gradle.unsafe.kotlin.assignment=true
in gradle.properties
from jib.
Hello @neogeogre, I haven't been able to replicate your issue. Could you try following the below example and seeing if it works for you?
My steps:
examples/helloworld/build.gradle
:- Verified line 3 is
id 'com.google.cloud.tools.jib' version '3.3.2'
- Updated line 17 to
jib.to.image = 'gcr.io/<myproject>/image-built-with-jib'
- Verified line 3 is
- Execute
./gradlew jib
. Result: Container uploaded to gcr.io with creation date Dec 31, 1969 - Modify
examples/helloworld/build.gradle
with new line 18:
jib.container.creationTime = "USE_CURRENT_TIMESTAMP"
- Execute
./gradlew jib
. Result: Container uploaded to gcr.io with creation date
Final build.gradle
:
plugins {
id 'java'
id 'com.google.cloud.tools.jib' version '3.3.2'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:23.6-jre'
}
jib.to.image = 'gcr.io/<myproject>/image-built-with-jib'
jib.container.creationTime = "USE_CURRENT_TIMESTAMP"
from jib.
Thank you @wakingrufus, this solved the issue, what is difficult to guess is that now properties are not all set in the same way like:
container {
ports = listOf("8080")
creationTime.set("USE_CURRENT_TIMESTAMP")
}
from jib.
Thank you @wakingrufus, this solved the issue, what is difficult to guess is that now properties are not all set in the same way like:
container { ports = listOf("8080") creationTime.set("USE_CURRENT_TIMESTAMP") }
Yes its not ideal. But eventually everything should be a property. Also in gradle 8.2+ the =
syntax works with properties
from jib.
Related Issues (20)
- How can I pass --from-platforms using plain Jib CLI? HOT 4
- Gradle configuration cache support HOT 2
- Is it possible to do the same thing through pom as jib-cli ? HOT 1
- Empty folders in the /app/resources directory slow down resource file scanning
- Jib Ubuntu and MacOS Continuous Builds are failing HOT 5
- Unauthorized error when Harbor redirects to official Docker Hub images HOT 2
- Automatically add standard oci annotations for base images
- Publish a release with #4204 HOT 3
- Upgrade ASM to 9.6 to support Java 22
- jvmFlags.add throws UnsupportedOperationException in gradle jib plugin
- Core Release v0.27.0-core
- Plugin Release v3.4.2-gradle
- Plugin Release v3.4.2-maven
- Jib CLI base image cache problem
- Jib CLI proxy usage not documented
- Some dependencies in jib-core are set to wrong dependency scope that may cause compilation error. HOT 3
- Jib 3.4.2 build fails HOT 22
- Jib MacOS Continuous job still experiencing failure with jetty
- Can't build multi arch images on M1 chips (Jib 3.4.1+) (Works on x64 chips) HOT 7
- Release jib cli v0.13.0 ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jib.