When the extension is used like this, the following error occurs:
A problem occurred configuring root project 'spring-boot-3-native'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.google.cloud.tools:jib-native-image-extension-gradle:0.1.0-SNAPSHOT.
Searched in the following locations:
- https://repo.spring.io/milestone/com/google/cloud/tools/jib-native-image-extension-gradle/0.1.0-SNAPSHOT/maven-metadata.xml
- https://repo.spring.io/milestone/com/google/cloud/tools/jib-native-image-extension-gradle/0.1.0-SNAPSHOT/jib-native-image-extension-gradle-0.1.0-SNAPSHOT.pom
- https://plugins.gradle.org/m2/com/google/cloud/tools/jib-native-image-extension-gradle/0.1.0-SNAPSHOT/maven-metadata.xml
- https://plugins.gradle.org/m2/com/google/cloud/tools/jib-native-image-extension-gradle/0.1.0-SNAPSHOT/jib-native-image-extension-gradle-0.1.0-SNAPSHOT.pom
The reason seems to be that the 0.1.0-SNAPSHOT was not uploaded to any public Gradle repository.
I guess the version in the README.md should be replaced with 0.1.0, so that one can simply copy the code snippet to use the jib-native-image-extension-gradle extension.
For the
jib-native-image-extension-gradle
extension the following usage at https://github.com/GoogleContainerTools/jib-extensions/tree/master/first-party/jib-native-image-extension-gradle#examples is described:When the extension is used like this, the following error occurs:
The reason seems to be that the
0.1.0-SNAPSHOT
was not uploaded to any public Gradle repository.I guess the version in the
README.md
should be replaced with0.1.0
, so that one can simply copy the code snippet to use thejib-native-image-extension-gradle
extension.