gradle cleanups

This commit is contained in:
Hannes Janetzek
2014-02-23 18:50:17 +01:00
parent c5479c18f6
commit dac9b8adad
12 changed files with 185 additions and 156 deletions

View File

@@ -1,18 +1,25 @@
apply plugin: 'java'
apply plugin: 'maven'
configurations { providedCompile }
dependencies {
compile 'org.slf4j:slf4j-api:1.7.6'
compile 'com.google.code.findbugs:annotations:2.0.1'
providedCompile 'com.google.code.findbugs:annotations:2.0.1'
}
sourceSets {
main.java.srcDirs = ['src']
main.compileClasspath += configurations.providedCompile
//main.resources.srcDirs = ['assets']
}
//... there is probably a better way
eclipse.classpath.file.whenMerged { classpath ->
classpath.entries.findAll { entry ->
entry.path.contains('annotations') }*.exported = false
}
eclipse.classpath {
plusConfigurations += configurations.providedCompile
file.whenMerged { classpath ->
classpath.entries.findAll { entry ->
entry.path.contains('annotations') }*.exported = false
}
}