Skip to content

Instantly share code, notes, and snippets.

@ChaosJohn
Forked from dant3/build.gradle
Created December 23, 2015 09:07
Show Gist options
  • Save ChaosJohn/03fd3bcf4826493489be to your computer and use it in GitHub Desktop.
Save ChaosJohn/03fd3bcf4826493489be 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