Support for eclipse + buildship (#173)

This commit is contained in:
Andrew Kent 2017-12-14 01:20:27 -08:00 committed by Emanuele Palazzetti
parent ca29390591
commit 922b3012e6
2 changed files with 11 additions and 3 deletions

View File

@ -29,9 +29,6 @@ dependencies {
testCompile group: 'org.objenesis', name: 'objenesis', version: '2.6'
testCompile group: 'cglib', name: 'cglib-nodep', version: '3.2.5'
testCompile 'org.openjdk.jmh:jmh-core:1.19'
testCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.19'
}
jmh {

View File

@ -11,6 +11,17 @@ lombok { // optional: values below are the defaults
sha256 = "9d957f572386b9e257093a45b148f9b411cff80d9efd55eaf6fca27002d2e4d9"
}
apply plugin: "eclipse"
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
if (configurations.find { it.name == 'jmh' }) {
eclipse.classpath.plusConfigurations += [ configurations.jmh ]
}
task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource