-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (55 loc) · 1.45 KB
/
Copy pathbuild.gradle
File metadata and controls
64 lines (55 loc) · 1.45 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apply plugin: 'java'
apply plugin: 'base'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = 'com.yittlebits.lidc.Extract'
repositories {
mavenCentral()
maven {
url "http://www.dcm4che.org/maven2/"
}
maven {
url "http://nexus.bedatadriven.com/content/groups/public/"
}
}
dependencies {
compile (
'commons-cli:commons-cli:1.3.1',
"dcm4che:dcm4che-core:2.0.29",
"dcm4che:dcm4che-net:2.0.29",
"dcm4che:dcm4che-image:2.0.29",
"dcm4che:dcm4che-filecache:2.0.29",
'org.slf4j:slf4j-jdk14:1.7.12',
'org.renjin.cran:oro.nifti:0.4.3-b203',
'com.fasterxml.jackson.core:jackson-core:2.6.3',
'com.fasterxml.jackson.core:jackson-databind:2.6.3',
)
}
task collectJars(type: Copy){
into "$buildDir/libs/lib"
from configurations.compile
}
task moreStartScripts(type: CreateStartScripts) {
mainClassName = 'com.yittlebits.lidc.Extract'
applicationName = "Extract"
outputDir = new File(project.buildDir, 'scripts')
classpath = jar.outputs.files + project.configurations.runtime
}
applicationDistribution.into("bin") {
from(moreStartScripts)
fileMode = 0755
}
// Make all tar tasks gzip
tasks.withType(Tar){
compression = Compression.GZIP
}
// jar {
// manifest {
// attributes (
// 'Main-Class': 'com.yittlebits.lidc.Extract',
// "Class-Path": configurations.compile.collect { "lib/" + it.name }.join(' ')
// )
// }
// }
// jar.dependsOn collectJars
//-*- mode: groovy -*-