forked from glencoesoftware/bioformats2raw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (115 loc) · 3.88 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
124
125
126
127
128
129
130
131
132
plugins {
id 'application'
id 'eclipse'
id 'maven-publish'
id 'checkstyle'
}
group = 'com.glencoesoftware'
version = '0.6.0-24'
mainClassName = 'com.glencoesoftware.bioformats2raw.Converter'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://artifacts.glencoesoftware.com/artifactory/ome.releases'
}
maven {
url 'https://repo.glencoesoftware.com/repository/n5-zarr-snapshots/'
}
maven {
url 'https://repo.glencoesoftware.com/repository/jzarr-snapshots'
}
maven {
url 'https://artifacts.glencoesoftware.com/artifactory/ome.external'
}
maven {
url 'https://artifacts.glencoesoftware.com/artifactory/scijava-thirdparty'
}
maven {
url 'https://artifacts.glencoesoftware.com/artifactory/jzarr-releases'
}
maven {
name 'Unidata'
url 'https://artifacts.glencoesoftware.com/artifactory/unidata-releases'
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
exclude group: 'edu.ucar', 'module': 'cdm'
}
dependencies {
implementation 'net.java.dev.jna:jna:5.10.0'
implementation 'idr:formats-gpl:0.6.10'
implementation 'info.picocli:picocli:4.6.1'
implementation 'com.univocity:univocity-parsers:2.8.4'
implementation 'com.bc.zarr:jzarr:0.3.5'
// implementation 'org.carlspring.cloud.aws:s3fs-nio:1.0-SNAPSHOT'
// implementation 'io.nextflow:nxf-s3fs:1.1.0'
implementation 'org.lasersonlab:s3fs:2.2.3'
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.3.4'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.3.4'
implementation 'org.openpnp:opencv:3.4.2-1'
implementation 'me.tongfei:progressbar:0.9.0'
// https://github.com/junit-team/junit5-samples/blob/master/junit5-migration-gradle/build.gradle
def junitVintageVersion = '5.7.0'
def junitJupiterVersion = '5.7.0'
def junitPlatformVersion = '1.7.0'
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junitPlatformVersion}"
// https://stackoverflow.com/questions/45462987/junit5-with-intellij-and-gradle
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
}
jar {
manifest {
attributes(
"Main-Class": mainClassName,
"Implementation-Version": archiveVersion
)
}
}
test {
useJUnitPlatform()
}
distributions {
main {
contents {
from("$projectDir") {
include 'README.md'
include 'LICENSE.txt'
}
}
}
}
startScripts {
// placing logback.xml somewhere under src/dist/lib/ keeps it out of
// bioformats2raw-*.jar but automatically includes it in the distribution zip
// the directory containing logback.xml must be explicitly added to the
// startup scripts' classpath, otherwise it will not be detected
// a subdirectory of 'src/dist/lib/' (not just 'src/dist/') is necessary,
// likely due to https://issues.gradle.org/browse/GRADLE-2991
// see also discussion in https://github.com/glencoesoftware/bioformats2raw/pull/169
classpath += files('src/dist/lib/config/')
}
publishing {
publications {
bioformats2raw(MavenPublication) {
from components.java
}
}
repositories {
maven {
url 'https://repo.glencoesoftware.com/repository/bioformats2raw2ometiff/'
credentials {
username = project.properties.ArtifactoryUserName
password = project.properties.ArtifactoryPassword
}
}
}
}
checkstyle {
toolVersion = "8.26"
}