create eclipse configuration with gradle
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
|
||||
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: '../vtm-ext-libs/libs', include: 'slf4j-api-1.7.5.jar')
|
||||
compile fileTree(dir: '../vtm-ext-libs/findbugs', include: 'annotations.jar')
|
||||
compile 'org.slf4j:slf4j-api:1.7.6'
|
||||
compile 'com.google.code.findbugs:annotations:2.0.1'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs = ['src']
|
||||
//main.resources.srcDirs = ['src']
|
||||
main.java.srcDirs = ['src']
|
||||
//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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user