-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
40 lines (33 loc) · 990 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
36
37
38
39
40
apply plugin: 'groovy'
apply plugin: 'application'
version = 0.5
repositories {
mavenCentral()
mavenLocal()
maven {
url 'http://dl.bintray.com/spectralogic/ds3'
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'com.spectralogic.ds3:ds3-sdk:3.4.0'
compile 'ch.qos.logback:logback-core:1.2.3'
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'jline:jline:2.14.5'
compile group: 'commons-cli', name: 'commons-cli', version: '1.2'
testCompile gradleTestKit()
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
mainClassName = 'com.spectralogic.dsl.Tool'