Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.mulesoft:jaxrs-to-raml:3.0.7'
}
dependencies {
implementation("com.github.mulesoft:jaxrs-to-raml:3.0.7")
}
<dependency>
<groupId>com.github.mulesoft</groupId>
<artifactId>jaxrs-to-raml</artifactId>
<version>3.0.7</version>
</dependency>
libraryDependencies += "com.github.mulesoft" % "jaxrs-to-raml" % "3.0.7"
:dependencies [[com.github.mulesoft/jaxrs-to-raml "3.0.7"]]
The goal of RAML for JAX-RS is to provide a set of tools to work with these technologies in a way of being able to scaffold a JAVA + JAX-RS application based on an existing RAML API definition (Code Generation), or its roundtrip, generate the RAML API definition based on an existing JAVA + JAX-RS application (Documentation).
There are two projects:
NOTE: raml-to-jaxrs
supports both RAML 0.8 and 1.0. jaxrs-to-raml
supports RAML 1.0 only, to generate RAML 0.8, you can use version 1.3.x
of raml-for-jax-rs
.
Maven artifacts are available at:
Releases are also available on Maven Central.
If you are interested in contributing some code to this project, thanks! Please submit a Contributors Agreement acknowledging that you are transferring ownership.
To discuss this project: