Closed jdev-2020 closed 1 year ago
It's been published to the Gradle plugins portal.
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.
- What went wrong: A problem occurred configuring project ':myproject'. > Could not resolve all task dependencies for configuration ':myproject:classpath'. > Could not find gradle.plugin.io.vertx:vertx-gradle-plugin:1.4.0. Searched in the following locations:
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.
You can probably use https://plugins.gradle.org/m2/ as a Maven repository.
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'
}
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: @.***>
It looks like Gradle changed the naming. This works:
dependencies {
implementation 'io.vertx:vertx-gradle-plugin:1.4.0'
}
Thank you.
The new version 1.4.0 can't be found on the Maven Repository.