Skip to content

Commit 04a645a

Browse files
committed
Merge branch 'master' into fix-test-warning
2 parents f386100 + 18d5c77 commit 04a645a

File tree

71 files changed

+810
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+810
-124
lines changed

.allstar/binary_artifacts.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore reason: jars are used for testing purposes only
2+
ignorePaths:
3+
- jib-gradle-plugin/src/integration-test/resources/gradle/projects/default-target/libs/dependency-1.0.0.jar
4+
- jib-gradle-plugin/src/integration-test/resources/gradle/projects/simple/libs/dependency-1.0.0.jar

.github/ISSUE_TEMPLATE/issue_report.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ assignees: ''
88
---
99

1010
<!--
11-
Before filing an issue, please reproduce with the latest version of Jib.
11+
Please follow the guidelines below before opening an issue:
12+
1. Ensure the issue was not already reported.
13+
2. Open a new issue if you are unable to find an existing issue addressing your problem. Make sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
14+
3. Discuss the priority and potential solutions with the maintainers in the issue. The maintainers would review the issue and add a label "Accepting Contributions" once the issue is ready for accepting contributions.
15+
4. Open a PR only if the issue is labeled with "Accepting Contributions", ensure the PR description clearly describes the problem and solution. Note that an open PR without an issues labeled with "Accepting Contributions" will not be accepted.
16+
17+
Please reproduce with the latest version of Jib.
1218
1319
If you are encountering errors pulling or pushing to remote registries,
1420
please check our Frequently Asked Questions before filing an issue:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
Thank you for your interest in contributing! For general guidelines, please refer to
22
the [contributing guide](https://github.com/GoogleContainerTools/jib/blob/master/CONTRIBUTING.md).
33

4-
Before filing a pull request, make sure to do the following:
5-
6-
- [ ] Create a new issue at https://github.com/GoogleContainerTools/jib/issues/new/choose.
7-
- [ ] Ensure that your implementation plan is approved by the team.
4+
Please follow the guidelines below before opening an issue or a PR:
5+
- [ ] Ensure the issue was not already reported.
6+
- [ ] Create a new issue at https://github.com/GoogleContainerTools/jib/issues/new/choose if you are unable to find an existing issue addressing your problem. Make sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
7+
- [ ] Discuss the priority and potential solutions with the maintainers in the issue. The maintainers would review the issue and add a label "Accepting Contributions" once the issue is ready for accepting contributions.
8+
- [ ] Open a PR only if the issue is labeled with "Accepting Contributions", ensure the PR description clearly describes the problem and solution. Note that an open PR without an issues labeled with "Accepting Contributions" will not be accepted.
89
- [ ] Verify that integration tests and unit tests are passing after the change.
9-
- [ ] Address all checkstyle issues. Refer to
10-
the [style guide](https://github.com/GoogleContainerTools/jib/blob/master/STYLE_GUIDE.md).
11-
12-
This helps to reduce the chance of having a pull request rejected.
10+
- [ ] Address all checkstyle issues. Refer to the [style guide](https://github.com/GoogleContainerTools/jib/blob/master/STYLE_GUIDE.md).
1311

1412
Fixes #<issue_number_goes_here> 🛠️

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: gradle/wrapper-validation-action@v1.1.0
10+
- uses: gradle/wrapper-validation-action@v3.3.2

.github/workflows/jib-cli-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
asset_content_type: text/plain
100100

101101
- name: Create Jib CLI release checklist issue
102-
uses: JasonEtco/[email protected].1
102+
uses: JasonEtco/[email protected].2
103103
env:
104104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105105
RELEASE_NAME: v${{ github.event.inputs.release_version }}-cli
@@ -117,7 +117,7 @@ jobs:
117117
actions: read # To read the workflow path.
118118
id-token: write # To sign the provenance.
119119
contents: write # To add assets to a release.
120-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.7.0
120+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.10.0
121121
with:
122122
base64-subjects: "${{ needs.release.outputs.hashes }}"
123123

.github/workflows/prepare-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
See [CHANGELOG.md](https://github.com/GoogleContainerTools/jib/blob/master/jib-${{ github.event.inputs.project }}-plugin/CHANGELOG.md) for more details.
9393
9494
- name: Create Maven/Gradle release checklist issue
95-
uses: JasonEtco/[email protected].1
95+
uses: JasonEtco/[email protected].2
9696
if: ${{ github.event.inputs.project == 'maven' || github.event.inputs.project == 'gradle' }}
9797
env:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -121,7 +121,7 @@ jobs:
121121
See [CHANGELOG.md](https://github.com/GoogleContainerTools/jib/blob/master/jib-core/CHANGELOG.md) for more details.
122122
123123
- name: Create Core release checklist issue
124-
uses: JasonEtco/[email protected].1
124+
uses: JasonEtco/[email protected].2
125125
if: ${{ github.event.inputs.project == 'core' }}
126126
env:
127127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
distribution: 'adopt'
2828
java-version: 11
2929
- name: Cache SonarCloud packages
30-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3131
with:
3232
path: ~/.sonar/cache
3333
key: ${{ runner.os }}-sonar-${{ steps.date.outputs.date }}
34-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
3535
with:
3636
path: |
3737
~/.m2/repository

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
distribution: 'adopt'
2626
java-version: ${{ matrix.java }}
27-
- uses: actions/cache@v3
27+
- uses: actions/cache@v4
2828
with:
2929
path: |
3030
~/.m2/repository

CONTRIBUTING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
2+
This project is currently stable, and we are primarily focused on critical bug fixes and platform evolution to ensure it continues to work for its supported use cases.
3+
14
# Contributing to Jib
25

3-
We'd love to accept your patches and contributions to this project. There are
4-
just a few small guidelines you need to follow.
6+
Please follow the guidelines below before opening an issue or a PR:
7+
1. Ensure the issue was not already reported.
8+
2. Open a new issue if you are unable to find an existing issue addressing your problem. Make sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
9+
3. Discuss the priority and potential solutions with the maintainers in the issue. The maintainers would review the issue and add a label "Accepting Contributions" once the issue is ready for accepting contributions.
10+
4. Open a PR only if the issue is labeled with "Accepting Contributions", ensure the PR description clearly describes the problem and solution. Note that an open PR without an issues labeled with "Accepting Contributions" will not be accepted.
511

612
## Contributor License Agreement
713

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ project.ext.dependencyStrings = [
2828
GRADLE_EXTENSION: 'com.google.cloud.tools:jib-gradle-plugin-extension-api:0.4.0',
2929
MAVEN_EXTENSION: 'com.google.cloud.tools:jib-maven-plugin-extension-api:0.4.0',
3030

31-
COMMONS_COMPRESS: 'org.apache.commons:commons-compress:1.21',
31+
COMMONS_COMPRESS: 'org.apache.commons:commons-compress:1.26.0',
3232
ZSTD_JNI: 'com.github.luben:zstd-jni:1.5.5-5',
3333
COMMONS_TEXT: 'org.apache.commons:commons-text:1.10.0',
3434
JACKSON_BOM: 'com.fasterxml.jackson:jackson-bom:2.15.2',
@@ -40,7 +40,7 @@ project.ext.dependencyStrings = [
4040

4141
MAVEN_API: 'org.apache.maven:maven-plugin-api:3.9.3',
4242
MAVEN_CORE: 'org.apache.maven:maven-core:3.9.3',
43-
MAVEN_COMPAT: 'org.apache.maven:maven-compat:3.9.3',
43+
MAVEN_COMPAT: 'org.apache.maven:maven-compat:3.9.6',
4444
MAVEN_PLUGIN_ANNOTATIONS: 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.9.0',
4545

4646
//test
@@ -371,7 +371,7 @@ subprojects {
371371
// sourceProject(Project) accepts a project and adds it as a dependency in a special manner:
372372
// 1. force evaluation of the project first
373373
// 2. add the project classes as "compileOnly" and make it available to tests in "testImplementation"
374-
// 3. add the project's depedencies as "implementation"
374+
// 3. add the project's dependencies as "implementation"
375375
// 4. remove any transitive reference of any sourceProject depenency that may have appeared
376376
// 5. add the project's classes to the final jar
377377
// Other nice effects (vs shadowJar)

config/checkstyle/copyright-java.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
^/\*$
2-
^ \* Copyright 20(17|18|19|20|21|22|23) Google LLC\.$
2+
^ \* Copyright 20(17|18|19|20|21|22|23|24) Google LLC\.$
33
^ \*$
44
^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\); you may not$
55
^ \* use this file except in compliance with the License\. You may obtain a copy of$

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ The `war` command currently supports containerization of standard WARs. It uses
901901
* Resources Layer
902902
* Classes Layer
903903

904-
The default entrypoint when using a jetty base image will be `java -jar /usr/local/jetty/start.jar` unless you choose to specify a custom one.
904+
The default entrypoint when using a jetty base image will be `java -jar /usr/local/jetty/start.jar --module=ee10-deploy` unless you choose to specify a custom one.
905905

906906
You can use a different Servlet engine base image with the help of the `--from` option and customize `--app-root`, `--entrypoint` and `--program-args`. If you don't set the `entrypoint` or `program-arguments`, Jib will inherit them from the base image. However, setting the `--app-root` is **required** if you use a non-jetty base image. Here is how the `war` command may look if you're using a Tomcat image:
907907
```

docs/google-cloud-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Any Java container can be used for building, not only the `gcr.io/cloud-builders
1313

1414
```yaml
1515
steps:
16-
- name: 'docker.io/library/eclipse-temurin:17'
16+
- name: 'docker.io/library/eclipse-temurin:21'
1717
entrypoint: './gradlew'
1818
args: ['--console=plain', '--no-daemon', ':server:jib', '-Djib.to.image=gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA']
1919
```

docs/privacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and version.
1111
### How to disable update checks
1212

1313
1. set the `jib.disableUpdateChecks` system property to `true`
14-
2. set `disableUpdateChecks` to `true` in Jib's global config. The global config is in the following locations by default:
14+
2. set `disableUpdateCheck` to `true` in Jib's global config. The global config is in the following locations by default:
1515
* Linux: `$XDG_CONFIG_HOME/google-cloud-tools-java/jib/config.json` (if `$XDG_CONFIG_HOME` is defined), else `$HOME/.config/google-cloud-tools-java/jib/config.json`
1616
* Mac: `$XDG_CONFIG_HOME/Google/Jib/config.json` (if `$XDG_CONFIG_HOME` is defined), else `$HOME/Library/Preferences/Google/Jib/config.json`
1717
* Windows: `$XDG_CONFIG_HOME\Google\Jib\Config\config.json` (if `$XDG_CONFIG_HOME` is defined), else `%LOCALAPPDATA%\Google\Jib\Config\config.json`

examples/dropwizard/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dropwizard-template-config.version>1.5.0</dropwizard-template-config.version>
2727

2828
<jib.container.appRoot>/app</jib.container.appRoot>
29-
<jib-maven-plugin.version>3.4.0</jib-maven-plugin.version>
29+
<jib-maven-plugin.version>3.4.3</jib-maven-plugin.version>
3030
</properties>
3131

3232
<dependencyManagement>

examples/helloworld/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'com.google.cloud.tools.jib' version '3.4.0'
3+
id 'com.google.cloud.tools.jib' version '3.4.3'
44
}
55

66
sourceCompatibility = 1.8

examples/helloworld/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<jib-maven-plugin.version>3.4.0</jib-maven-plugin.version>
12+
<jib-maven-plugin.version>3.4.3</jib-maven-plugin.version>
1313
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
1414
</properties>
1515

examples/java-agent/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'com.google.cloud.tools.jib' version '3.4.0'
3+
id 'com.google.cloud.tools.jib' version '3.4.3'
44
id 'de.undercouch.download' version '4.0.0'
55
id 'com.gorylenko.gradle-git-properties' version '2.2.0'
66
}

examples/java-agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<jib-maven-plugin.version>3.4.0</jib-maven-plugin.version>
12+
<jib-maven-plugin.version>3.4.3</jib-maven-plugin.version>
1313
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
1414
<download-maven-plugin.version>1.4.2</download-maven-plugin.version>
1515
<git-commit-id-plugin.version>3.0.1</git-commit-id-plugin.version>

examples/ktor/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
application
33
kotlin("jvm") version "1.3.10"
4-
id("com.google.cloud.tools.jib") version "3.4.0"
4+
id("com.google.cloud.tools.jib") version "3.4.3"
55
}
66

77
group = "example"

examples/micronaut/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id "groovy"
33
id "com.github.johnrengelman.shadow" version "5.2.0"
44
id "application"
5-
id 'com.google.cloud.tools.jib' version '3.4.0'
5+
id 'com.google.cloud.tools.jib' version '3.4.3'
66
}
77

88
version "0.1"

examples/multi-module/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
plugins {
33
id 'org.springframework.boot' version '2.0.3.RELEASE' apply false
44
id 'io.spring.dependency-management' version '1.0.6.RELEASE' apply false
5-
id 'com.google.cloud.tools.jib' version '3.4.0' apply false
5+
id 'com.google.cloud.tools.jib' version '3.4.3' apply false
66
}

examples/multi-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<plugin>
4242
<groupId>com.google.cloud.tools</groupId>
4343
<artifactId>jib-maven-plugin</artifactId>
44-
<version>3.4.0</version>
44+
<version>3.4.3</version>
4545
</plugin>
4646
</plugins>
4747
</pluginManagement>

examples/spring-boot/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'idea'
55
id 'org.springframework.boot' version '2.1.6.RELEASE'
66
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
7-
id 'com.google.cloud.tools.jib' version '3.4.0'
7+
id 'com.google.cloud.tools.jib' version '3.4.3'
88
}
99

1010
repositories {

examples/spring-boot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<plugin>
3030
<groupId>com.google.cloud.tools</groupId>
3131
<artifactId>jib-maven-plugin</artifactId>
32-
<version>3.4.0</version>
32+
<version>3.4.3</version>
3333
</plugin>
3434
</plugins>
3535
</build>

examples/vertx/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'io.vertx.vertx-plugin' version '0.1.0'
3-
id 'com.google.cloud.tools.jib' version '3.4.0'
3+
id 'com.google.cloud.tools.jib' version '3.4.3'
44
}
55

66
repositories {

jib-cli/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ All notable changes to this project will be documented in this file.
99

1010
### Fixed
1111

12+
## 0.13.0
13+
14+
### Added
15+
16+
### Changed
17+
18+
### Fixed
19+
- fix: support parsing manifest JSON containing `LayerSources:` from latest Docker. ([#4171](https://github.com/GoogleContainerTools/jib/pull/4171))
20+
- fix: (WAR Containerization) modify default entrypoint to `java -jar /usr/local/jetty/start.jar --module=ee10-deploy` for Jetty 12+ compatibility ([#4216](https://github.com/GoogleContainerTools/jib/pull/4216))
21+
1222
## 0.12.0
1323

1424
### Changed

jib-cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Most users should download a ZIP archive (Java application). We are working on r
5656

5757
A JRE is required to run this Jib CLI distribution.
5858

59-
Find the [latest jib-cli 0.12.0 release](https://github.com/GoogleContainerTools/jib/releases/latest) on the [Releases page](https://github.com/GoogleContainerTools/jib/releases) and download `jib-jre-<version>.zip`.
59+
Find the [latest jib-cli 0.13.0 release](https://github.com/GoogleContainerTools/jib/releases/latest) on the [Releases page](https://github.com/GoogleContainerTools/jib/releases) and download `jib-jre-<version>.zip`.
6060

6161
Unzip the zip file. The zip file contains the `jib` (`jib.bat` for Windows) script at `jib/bin/`. Optionally, add the binary directory to your `$PATH` so that you can call `jib` from anywhere.
6262

@@ -190,7 +190,7 @@ This command follows the following pattern:
190190

191191
## Quickstart
192192

193-
1. Have your sample WAR ready and use the `war` command to containerize your WAR. By default, the WAR command uses [`jetty`](https://hub.docker.com/_/jetty) as the base image so the entrypoint is set to `java -jar /usr/local/jetty/start.jar`:
193+
1. Have your sample WAR ready and use the `war` command to containerize your WAR. By default, the WAR command uses [`jetty`](https://hub.docker.com/_/jetty) as the base image so the entrypoint is set to `java -jar /usr/local/jetty/start.jar --module=ee10-deploy`:
194194
```
195195
$ jib war --target=docker://cli-war-quickstart <your-sample>.war
196196
```

jib-cli/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = 0.12.1-SNAPSHOT
1+
version = 0.13.1-SNAPSHOT

0 commit comments

Comments
 (0)