senx / warp10-plugin-kafka

Warp 10 Kafka Plugin
Other
0 stars 3 forks source link

Can't build plugin anymore #4

Open Simbud-7 opened 1 year ago

Simbud-7 commented 1 year ago

Hi,

I used to build successfully the plugin in my CI, but since few days, it doesn't build anymore as Maven has removed their .pom :

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'warp10-plugin-kafka'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.ajoberstar.grgit:grgit-core:4.0.1.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/ajoberstar/grgit/grgit-core/4.0.1/grgit-core-4.0.1.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project : > net.nemerosa.versioning:net.nemerosa.versioning.gradle.plugin:2.14.0 > gradle.plugin.net.nemerosa:versioning:2.14.0

I didn't find where to change the version to 4.1.1 as 4.0.1 has just been removed : https://repo1.maven.org/maven2/org/ajoberstar/grgit/grgit-core/

FYI, I'm using this method : https://github.com/senx/warp10-plugin-kafka#from-source

Thanks for any help / workaround :)

Giwi commented 1 year ago

Hi, this lib depends on net.nemerosa.versioning:2.14.0 and is hosted on Bintray (RIP), this Gradle plugin has been updated, but do not fit (yet) our CI/CD requirements. We will use another way to fetch the git tag/build number.

There is 2 workarounds:

Simbud-7 commented 1 year ago

Thanks for your answer & work-around.

As it's for using in a CI/CD, I'll take the compiled plugin directly from the website and store it in our artifacts registry, as I guess the file link will be removed when a newer version is released.

Giwi commented 1 year ago

Nope, the file link is a Maven link, so, you can still download the version you want: https://repo.maven.apache.org/maven2/io/warp10/warp10-plugin-kafka/

You can also use our Gradle plugin in order to fetch the right version (and its dependencies): https://warpfleet.senx.io/doc

Simbud-7 commented 1 year ago

Got it. Thanks for your help and answer

Giwi commented 1 year ago

You are welcome :)

Simbud-7 commented 1 year ago

Hi,

I tried both available plugins : 1.0.1 and 2.0.0 retrieved here : https://repo.maven.apache.org/maven2/io/warp10/warp10-plugin-kafka/

And I got the same error twice (Warp10 2.11.1) :

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Kafka Plugin not compatible with your Warp 10 version.
Giwi commented 1 year ago

Strange, 1.0.1-uberjar is for Warp 10 2.x 2.0.0-uberjar is for Warp 10 3.x -> this version prints the message "Kafka Plugin not compatible with your Warp 10 version." be sure you do not have both libs in the same folder.

Simbud-7 commented 1 year ago

good catch, both were in the same folder. Thanks !