Skip to content

Commit

Permalink
Temurin backporting for maven/gradle plugins (#3695)
Browse files Browse the repository at this point in the history
Fixing maven/gradle plugins now
  • Loading branch information
elefeint authored Jun 23, 2022
1 parent ce193cf commit 09d8080
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies {
}

jib {
from.image = 'eclipse-temurin:8-jdk-focal'
container {
args = ['An argument.']
ports = ['1000/tcp', '2000-2003/udp']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repositories {
}

jib {
from.image = 'eclipse-temurin:8-jdk-focal'
to {
image = System.getProperty('_TARGET_IMAGE')
credHelper = 'gcr'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jib {
to {
image = System.getProperty("_TARGET_IMAGE")
}
from.image = 'eclipse-temurin:11-jdk-focal'
containerizingMode = 'packaged'
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ dependencies {
compile files('libs/dependency-1.0.0.jar')
}

jib.from.image = 'gcr.io/distroless/java'
jib.from.image = 'eclipse-temurin:8-jdk-focal'
jib.to.image = System.getProperty("_TARGET_IMAGE")
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies {
compile files('libs/dependency-1.0.0.jar')
}

jib.from.image = 'eclipse-temurin:11-jdk-focal'
jib.to.image = System.getProperty("_TARGET_IMAGE")
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies {
}

jib {
from.image = 'eclipse-temurin:11-jdk-focal'
to.image = System.getProperty("_TARGET_IMAGE")
container.filesModificationTime = '2011-12-03T10:15:30+09:00'
container.creationTime = '2013-11-05T06:29:30+09:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ war {
}

jib {
from.image = 'tomcat:10-jre8-temurin'
from.image = 'tomcat:10-jre8-temurin-focal'
to {
image = System.getProperty("_TARGET_IMAGE")
credHelper = 'gcr'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:8-jdk-focal</image>
</from>
<container>
<args>An argument.</args>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:11-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
<tags>${_ADDITIONAL_TAG}</tags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:8-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
<credHelper>gcr</credHelper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:8-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
<credHelper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:11-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
</to>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>gcr.io/distroless/java</image>
<image>eclipse-temurin:8-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:11-jdk-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
</to>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>eclipse-temurin:11-jdk-focal</image>
</from>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<version>${jib-maven-plugin.version}</version>
<configuration>
<from>
<image>tomcat:10-jre8-temurin</image>
<image>tomcat:10-jre8-temurin-focal</image>
</from>
<to>
<image>${_TARGET_IMAGE}</image>
Expand Down

0 comments on commit 09d8080

Please sign in to comment.