How to install REST Builder

Use the Gradle plugin to install REST builder by adding this gradle configuration to your project:

buildscript {
    dependencies {
        classpath group: "com.liferay", name: "com.liferay.gradle.plugins.rest.builder", version: "1.0.21"
    }

    repositories {
        maven {
            url "https://repository-cdn.liferay.com/nexus/content/groups/public"
        }
    }
}

apply plugin: "com.liferay.portal.tools.rest.builder"

To use it, run gradlew buildREST. Note that your Gradle wrapper may not be in your app’s project directory, so you may need to use Blade to locate it:

blade gw buildREST

If you want to use a specific version of REST builder, you can specify it explicitly:

dependencies {
    restBuilder group: "com.liferay", name: "com.liferay.portal.tools.rest.builder", version: "1.0.30"
}
« REST BuilderREST Builder & OpenAPI »
Was this article helpful?
1 out of 2 found this helpful