jponge / vertx-gradle-plugin

An opinionated Gradle plugin for Vert.x projects
Apache License 2.0
113 stars 15 forks source link

Please publish 1.4.0 to the Maven Repository #70

Closed jdev-2020 closed 1 year ago

jdev-2020 commented 1 year ago

The new version 1.4.0 can't be found on the Maven Repository.

jponge commented 1 year ago

It's been published to the Gradle plugins portal.

jdev-2020 commented 1 year ago

Thanks for looking at this.

Having the plugin published to the Gradle Plugins Portal works when we apply it on the project with:

plugins {
  id 'io.vertx.vertx-plugin' version '1.4.0'
}

But it won't work if we depend on the plugin as a dependency:

dependencies {
  implementation 'gradle.plugin.io.vertx:vertx-gradle-plugin:1.4.0'
}

Gradle build fails with:

FAILURE: Build failed with an exception.

It used to work with the version 1.3.0 of the plugin. I believe that the publication will make it work for 1.4.0.

jponge commented 1 year ago

You can probably use https://plugins.gradle.org/m2/ as a Maven repository.

jdev-2020 commented 1 year ago

It didn't work with

repositories {
  maven {
    url 'https://plugins.gradle.org/m2/'
  }
}
dependencies {
  implementation 'gradle.plugin.io.vertx:vertx-gradle-plugin:1.4.0'
}

https://plugins.gradle.org/m2/gradle/plugin/io/vertx/vertx-gradle-plugin/1.4.0/vertx-gradle-plugin-1.4.0.pom is 404.

jponge commented 1 year ago

You should open a ticket on Gradle then, I don't know what is their current strategy for consuming plugins as dependencies instead of in the classic plugins block.

On Mon, Mar 13, 2023, at 23:29, jdev-2020 wrote:

It didn't work with

repositories { maven { url 'https://plugins.gradle.org/m2/' } } dependencies { implementation 'gradle.plugin.io.vertx:vertx-gradle-plugin:1.4.0' } https://plugins.gradle.org/m2/gradle/plugin/io/vertx/vertx-gradle-plugin/1.4.0/vertx-gradle-plugin-1.4.0.pom is 404.

— Reply to this email directly, view it on GitHub https://github.com/jponge/vertx-gradle-plugin/issues/70#issuecomment-1467061518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGK2NCRTC5IMVGHZCMAM3W36NTNANCNFSM6AAAAAAVYNHZ64. You are receiving this because you modified the open/close state.Message ID: @.***>

jdev-2020 commented 1 year ago

It looks like Gradle changed the naming. This works:

 dependencies {
   implementation 'io.vertx:vertx-gradle-plugin:1.4.0'
 }

Thank you.