gradle cleanups
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user