diff --git a/build.gradle b/build.gradle index 306307892f..c1a31437b0 100644 --- a/build.gradle +++ b/build.gradle @@ -67,7 +67,7 @@ subprojects { COMMONS_COMPRESS: 'org.apache.commons:commons-compress:1.20', JACKSON_DATABIND: 'com.fasterxml.jackson.core:jackson-databind:2.11.2', JACKSON_DATAFORMAT_YAML: 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.2', - ASM: 'org.ow2.asm:asm:8.0.1', + ASM: 'org.ow2.asm:asm:9.0', PICOCLI: 'info.picocli:picocli:4.5.1', MAVEN_API: 'org.apache.maven:maven-plugin-api:3.6.3', diff --git a/jib-core/CHANGELOG.md b/jib-core/CHANGELOG.md index 1f23841e96..f1f51169f8 100644 --- a/jib-core/CHANGELOG.md +++ b/jib-core/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. - Upgraded jib-build-plan to 0.4.0. ([#2660](https://github.com/GoogleContainerTools/jib/pull/2660)) - Previous locally cached base image manifests will be ignored, as the caching mechanism changed to enable multi-platform image building. ([#2730](https://github.com/GoogleContainerTools/jib/pull/2730), [#2711](https://github.com/GoogleContainerTools/jib/pull/2711)) +- Upgraded the ASM library to 9.0 to resolve an issue when auto-inferring main class in Java 15+. ([#2776](https://github.com/GoogleContainerTools/jib/pull/2776)) ### Fixed diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/MainClassFinder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/MainClassFinder.java index 69afd627bf..8350dde560 100644 --- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/MainClassFinder.java +++ b/jib-core/src/main/java/com/google/cloud/tools/jib/api/MainClassFinder.java @@ -118,7 +118,7 @@ private static class MainClassVisitor extends ClassVisitor { private boolean visitedMainClass; private MainClassVisitor() { - super(Opcodes.ASM7); + super(Opcodes.ASM9); } @Override diff --git a/jib-gradle-plugin/CHANGELOG.md b/jib-gradle-plugin/CHANGELOG.md index f8b80e1337..5ac0395c67 100644 --- a/jib-gradle-plugin/CHANGELOG.md +++ b/jib-gradle-plugin/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. ### Changed - Previous locally cached base image manifests will be ignored, as the caching mechanism changed to enable multi-platform image building. ([#2730](https://github.com/GoogleContainerTools/jib/pull/2730), [#2711](https://github.com/GoogleContainerTools/jib/pull/2711)) +- Upgraded the ASM library to 9.0 to resolve an issue when auto-inferring main class in Java 15+. ([#2776](https://github.com/GoogleContainerTools/jib/pull/2776)) ### Fixed diff --git a/jib-maven-plugin/CHANGELOG.md b/jib-maven-plugin/CHANGELOG.md index 92a8a39848..65c36cbea7 100644 --- a/jib-maven-plugin/CHANGELOG.md +++ b/jib-maven-plugin/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Changed - Previous locally cached base image manifests will be ignored, as the caching mechanism changed to enable multi-platform image building. ([#2730](https://github.com/GoogleContainerTools/jib/pull/2730), [#2711](https://github.com/GoogleContainerTools/jib/pull/2711)) +- Upgraded the ASM library to 9.0 to resolve an issue when auto-inferring main class in Java 15+. ([#2776](https://github.com/GoogleContainerTools/jib/pull/2776)) ### Fixed