-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
124 lines (111 loc) · 3.07 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
apply plugin: 'java'
//apply plugin: 'maven'
group = 'ch.psi'
version = '0.13.0'
description = """"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://artifacts.psi.ch/artifactory/libs-releases" }
maven { url "http://maven.imagej.net/content/repositories/public/" }
flatDir {
dirs 'lib'
}
}
// define a provided scope
configurations {
provided
compile.extendsFrom provided
}
dependencies {
compile name: 'sis-jhdf5-19.04.0'
compile name: 'sis-base-18.09.0'
compile name: 'commons-io-2.6'
// compile name: 'sis-base-18.09.0'
// compile group: 'cisd', name: 'jhdf5', version: '14.12.6'
// compile group: 'hdf5', name: 'hdf', version:'2.10.0'
// compile group: 'hdf5', name: 'hdfobj', version:'2.10.0'
// compile group: 'hdf5', name: 'hdf5', version:'2.10.0'
// compile group: 'hdf5', name: 'hdf5obj', version:'2.10.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.6'
testCompile group: 'junit', name: 'junit', version: '4.11'
provided group: 'net.imagej', name: 'ij', version: '1.53e'
}
task fatJar(type: Jar) {
// manifest {
// attributes 'Implementation-Title': 'CaView',
// 'Implementation-Version': version,
// 'Main-Class': 'ch.psi.caview.CaView'
// }
archiveBaseName = 'HDF5_Viewer'
from { (configurations.compile - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
//task distributionZip(type: Zip, dependsOn: [fatJar]) {
// baseName "${project.group}-jhdf5"
//
// from('targets/dist') {
// into "${project.group}-jhdf5"
// include 'version.txt'
// include 'build.txt'
// }
//
// from ("$buildDir/output/dist") {
// into "${project.group}-jhdf5"
// include '*'
// }
//
// from ("$buildDir/output/dist") {
// into "${project.group}-jhdf5"
// include 'bin/*'
// }
//
// from ("$buildDir/output/dist") {
// into "${project.group}-jhdf5"
// include 'doc/*'
// }
//
// from (javadocJar.archivePath) {
// into "${project.group}-jhdf5/doc"
// }
//
// from (exampleJar.archivePath) {
// into "${project.group}-jhdf5/doc"
// }
//
// from (configurations.runtime) {
// include '*-sources*'
// into "${project.group}-jhdf5/sources"
// }
//
// from (sourcesJar.archivePath) {
// into "${project.group}-jhdf5/sources"
// }
//
// from (jar.archivePath) {
// into "${project.group}-jhdf5/lib"
// }
//
// from (h5arCLIJar.archivePath) {
// into "${project.group}-jhdf5/lib"
// }
//
// from (configurations.runtime) {
// exclude '*restriction*'
// exclude '*bcel*'
// exclude '*-sources*'
// into "${project.group}-jhdf5/lib"
// }
//
// from ("libs") {
// into "${project.group}-jhdf5/lib"
// include 'native/**'
// }
//
// from (configurations.runtime.collect {zipTree(it)}) {
// into "${project.group}-jhdf5/lib"
// include 'native/**/*'
// }
//
//}