stoicflame / enunciate-gradle

Gradle plugin for Enunciate
Apache License 2.0
5 stars 4 forks source link

Document use of optional modules (e.g. enunciate-lombok) #21

Closed p120ph37 closed 5 years ago

p120ph37 commented 5 years ago

enunciate-gradle can support Lombok generated accessors (@Getter,@Setter,@Data) by simply making the enunciate-lombok module available on the plugin classpath.

New Gradle (2.1+):

buildscript {
  dependencies {
    classpath "com.webcohesion.enunciate:enunciate-lombok:2.11.1"
  }
}

plugins {
  id "com.webcohesion.enunciate" version "2.11.1"
}

Old Gradle:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.webcohesion.enunciate:enunciate-gradle:2.11.1"
    classpath "com.webcohesion.enunciate:enunciate-lombok:2.11.1"
  }
}

apply plugin: "com.webcohesion.enunciate"