Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish JIB Gradle plugin artifact to MavenCentral (Gradle build conventions) #4038

Closed
namero999 opened this issue Jun 2, 2023 · 2 comments

Comments

@namero999
Copy link

namero999 commented Jun 2, 2023

Currently the plugin is published to the Gradle plugin portal and is accessible via id such as id("com.google.cloud.tools.jib") version "3.3.2"

However, when implementing Gradle's precompiled build conventions scripts, the plugin needs to be accessed as regular Maven dependency.

See here and here for documentation.

On MavenCentral, it can only be found the JIB plugin for version 3.0.0 https://mvnrepository.com/artifact/gradle.plugin.com.google.cloud.tools/jib-gradle-plugin

It would be great if each version released on the Gradle pluing portal would be accompanied by a release on MavenCentral, so that Gradle's build conventions can be implemented company-wide.

@chanseokoh
Copy link
Member

chanseokoh commented Jun 2, 2023

On MavenCentral, it can only be found the JIB plugin for version 3.0.0 https://mvnrepository.com/artifact/gradle.plugin.com.google.cloud.tools/jib-gradle-plugin

Don't be confused by the name of the site mvnrepository. It is not on Maven Central but on some weird repository I've never heard of:

image

No need to publish Jib artifacts to Maven Central. They are available on the Gradle Plugin Portal. Check these out:

@namero999
Copy link
Author

Excellent, thank you for the clarifications.
Seems like it's working by accessing it via the gradlePluginPortal() repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants