Closed ghost closed 6 years ago
It should be -wrapper? See https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/raml/jaxrs/jaxrs-to-raml-gradle-plugin-wrapper/
I just stumbled over the fact in a maven build that the groupId also changed from org.raml
to org.raml.jaxrs
.
Wrapper does not work as well, it says the implementation file not found.
Could not find implementation class 'org.raml.jaxrs.gradle.RamlToJaxrsPlugin' for plugin 'ramltojaxrs' specified in jar:file:/Users/XXXXXX/.gradle/caches/modules-2/files-2.1/org.raml.jaxrs/raml-to-jaxrs-gradle-plugin-wrapper/2.1.0/ab6c597ebc2b2d5ddfa24b496606ec7a75eb784d/raml-to-jaxrs-gradle-plugin-wrapper-2.1.0.jar!/META-INF/gradle-plugins/ramltojaxrs.properties.
And you sent a jaxrs to raml wrapper link. I am looking for from gradle to jaxrs
@jstoiko is something missing ?
@jpbelang not sure what's wrong. The buildscript.dependencies
in raml-for-jax-rs/raml-to-jaxrs/examples/gradle-examples/build.gradle
is definitely wrong. It should be raml-to-jaxrs-gradle-plugin-wrapper
instead of raml-to-jaxrs-gradle-plugin
, no?
Actually, no. The wrapper is just to allow for maven to build the gradle plugin.
The raml gradle plugin is not deployed in maven central: https://search.maven.org/#search%7Cga%7C1%7Craml-gradle-plugin
I'm looking into it now, but I don't have access to central.
@jpbelang: I think it's here: https://search.maven.org/#search%7Cga%7C1%7Craml-to-jaxrs-gradle-plugin. The artifact ID is raml-to-jaxrs-gradle-plugin-wrapper
on Maven Central.
The -wrapper plugin is not the actual plugin as far as gradle is concerned. Gradle will pull down that artifact but then you get a "Could not find implementation class 'org.raml.jaxrs.gradle.RamlToJaxrsPlugin ... " error on the "apply plugin: 'ramltojaxrs'" That "wrapper" plugin looks like the code for the plugin, perhaps the plugin can be built from it I don't know.
Checked out the repo. Built parts with mvn, did the suggested "gradle wrapper --gradle-version 3.3", explicitly set the version in the build.gradle to 2.1.0, and built the plugin with "./gradlew install". Then manually uploaded the plugin jar it to our maven repo. I can at least now apply the plugin. This is a very sloppy state of things.
I see that there was a commit regarding this issue? Does there just need to be a new release?
Indeed, seems to be just a release issue. The plugin is unavailable on mavenCentral or the mulesoft repos. I cloned raml-for-jax-rs and did a mvn clean install, after which I could use it following the instructions on the raml-to-jaxrs-gradle-plugin project page.
I'm yet another person who is affected by the missing jaxrs-to-raml-gradle-plugin artefact at mavenCentral or mulesoft mvn repos. As for other users the procedure:
results in the jaxrs-to-raml-gradle-plugin jar being installed in my local repo. Such state of things is fine for a school project, however, at my work it not acceptable.
As @glever suggested this seems to be just a release issue. Mulesoft guys, do you have any plan to release the jaxrs-to-raml-gradle-plugin to mavenCentral?
Any progress on this issue? There is still no correct release in Maven Central or Mulesoft.
That is the issue we are working on. It should result in a 3.0.2 release.
Could anybody check to see if the 3.0.2-SNAPSHOT version of the gradle plugin is available in the Mulesoft repo ?
There is no gradle plugin (3.0.2) released in either of the following links. https://repository.mulesoft.org/snapshots/org/raml/jaxrs/ https://repository.mulesoft.org/releases/org/raml/jaxrs/
It is not possible to search such plugin from search.maven.org
I see them here
https://repository-master.mulesoft.org/nexus/content/repositories/snapshots/org/raml/jaxrs/jaxrs-to-raml-gradle-plugin/ https://repository-master.mulesoft.org/nexus/content/repositories/snapshots/org/raml/jaxrs/raml-to-jaxrs-gradle-plugin/
@jstoiko is this the right place ? (It's where I see all the snapshots...)
My 5 cents are ... Won't that be great to have it on gradle-plugin portal .. to just get it like this
plugins {
...
}
?
Hello Mule team - any updates on this 10 months later? This leaves the entire Gradle community in limbo for the time being.
It's there.
I try to use the gradle plugin 2.1.0 but it is not found. Same if I try to compile the example project.