Jib: Gradle plugin 2.2.0 is not available on maven central

Created on 23 Apr 2020  路  10Comments  路  Source: GoogleContainerTools/jib

The Gradle plugin 2.2.0 does not seem to be published on maven central, while the maven plugin is.

All 10 comments

the gradle plugin is on the gradle plugin portal. The mvnrepository link you used is not actually maven central. It's just an index of various maven repositories

In the image you can see it's referencing the gradle plugins repository:
image

To correctly search maven central, use https://search.maven.org
To search for gradle plugins use https://plugins.gradle.org

The gradle jib plugin is here: https://plugins.gradle.org/plugin/com.google.cloud.tools.jib

This issue is non-actionable so closing for now.

Hello @loosebazooka and thank you for the fast answer.

The link I sent is indeed not the "real" maven central per se, but it does show that the artifact is not available as a maven dependency, such as:

dependency {
  implementation("gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:2.2.0")
}

In the Gradle plugin portal we can compare this way and see that there seem to be missing some information:

I'm no expert, but this might cause maven central to not understand this new version.

Yeah, so gradle has its own way of defining plugins. Perhaps something changed on our last update. Our own plugin release process has been the same. Let me take a look and see.

Also (for correctness) these are still not in mavenCentral, they are hosted on the gradle plugin repository (which is it's own maven repository).

maven central usually refers to the maven repository at https://repo1.maven.org/maven2/

Actually you know what, this is a re-appearance of: https://discuss.gradle.org/t/debug-an-issue-in-publish-plugin-gradle-plugin-not-being-prepended-to-groupid/32720

I think I messed up the release a little with a bug I already knew about :facepalm:

I'll have to fix this (and maybe re-release 2.2.0) :\

so, we probably wont do a re-issue of 2.2.0, maybe a 2.2.1 2.3.0 and this should fix your issue. There is a workaround, but I don't want to recommend it as it would be very temporary.

Right, this is only for 2.2.0, any future release will have the gradle.plugin prefix again

Nice, thanks a bunch

@celcius112 Jib 2.3.0 is released. You'll no longer see this issue.

Was this page helpful?
0 / 5 - 0 ratings