Skip to content

Instantly share code, notes, and snippets.

@dant3
Last active December 23, 2015 09:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dant3/91e205e12d51d490c6c8 to your computer and use it in GitHub Desktop.
Save dant3/91e205e12d51d490c6c8 to your computer and use it in GitHub Desktop.
lombok + gradle
apply plugin: 'java'
apply from: 'provided.gradle'
repositories {
mavenCentral()
}
dependencies {
provided group: 'org.projectlombok', name: 'lombok', version:'1.14.8'
}
// --- maven-like provided scope surrogate --- //
configurations {
provided
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment