GoogleContainerTools / jib-extensions

Apache License 2.0
117 stars 35 forks source link

In README of jib-native-image-extension-gradle replace version 0.1.0-SNAPSHOT with 0.1.0 #139

Closed haroldlbrown closed 2 years ago

haroldlbrown commented 2 years ago

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:

buildscript {
  dependencies {
    classpath('com.google.cloud.tools:jib-native-image-extension-gradle:0.1.0-SNAPSHOT')
  }
}

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.