-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
36 lines (30 loc) · 965 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
buildDir = file('output')
project.ext.fixedLibDir = file('lib')
project.ext.stagingDir = file('staging')
project.ext.toStagingDir = file(new File(buildDir, project.name))
project.ext.toStagingLibsDir = file(new File(toStagingDir, 'lib'))
project.ext.scriptsDir = file('src/scripts')
repositories {
mavenCentral()
}
dependencies {
//compile 'org.slf4j:slf4j-api:1.7.5'
testCompile 'junit:junit:4.11'
testCompile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
compile fileTree(dir: 'lib', include: '*.jar')
}
//let's at least copy all jars to a single directory to use in creating an application...
task syncJars(type: Copy) {
from(configurations.compile) {}
from(fixedLibDir) {}
from(jar.destinationDir) {}
into toStagingLibsDir
}
task syncScripts(type: Copy) {
from(scriptsDir) {}
into toStagingDir
}
assemble.dependsOn('syncJars', syncScripts)