Skip to content

Instantly share code, notes, and snippets.

@masahitojp
Created November 19, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masahitojp/c3023c36a59f0b4fa02d to your computer and use it in GitHub Desktop.
Save masahitojp/c3023c36a59f0b4fa02d to your computer and use it in GitHub Desktop.
Java8+Lombok+IntellijIdea+Gradleの環境用の最小のbuild.gradle
apply plugin: 'java'
apply plugin: 'idea'
group = 'me.masahito'
version = "0.1.0-SNAPSHOT"
sourceCompatibility = targetCompatibility = '1.8'
repositories.mavenCentral()
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
}
}
dependencies {
provided "org.projectlombok:lombok:1.14.8"
testCompile 'junit:junit:4.11'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment