Gradle Plugin based on the phoenixnap/springmvc-raml-plugin:
https://github.com/phoenixnap/springmvc-raml-plugin
The plugin is delivered to the gradle plugin repository https://plugins.gradle.org/plugin/com.netfalo.raml
In the build.gradle add the plugin dependecy
plugins {
id "com.netfalo.raml" version "0.1.0-beta1"
}
start a verification from a already existing raml file
gradle verifyRaml
generates a raml file from the current code
gradle generateRaml
raml {
...
}
Default value: application/json
Default value: [] (empty list)
Default value: [] (empty list)
Default value: "" (empty string)
raml {
verify {
...
}
}
The ramlFile option is mandatory, this should point to an already existing raml file
raml {
verify {
ramlFile = <full path to file>
}
}
Default value: true
Default value: "" (empty string)
Default value: true
Default value: true
Default value: true
Default value:true
Default value: true
Default value: true
Default value: true
Default value: true
Default value: true
Default value: false
Default value: "" (empty string)
Default value: false
Default value: false
Default value: false
Default value: true
Default value: true
raml {
generate {
...
}
}
Default filename is "api.raml"
Default value: "" (empty string)
Default value: false
Default value: false
Default value: false
Default value: false
Default value: "" (empty string)
After cloning: gradle publishToMavenLocal
In you spring project's build.gradle add this to the beginning:
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'com.netfalo', name: 'gradle-raml-plugin',
version: '0.1.0-beta1'
}
}
apply plugin: 'com.netfalo.raml'
At the moment only the raml generate and verify is implemented.