-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
68 lines (58 loc) · 1.79 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
plugins {
id 'groovy'
id 'application'
id 'java'
}
group 'be.cytomine.bioformats'
version '0.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://artifacts.openmicroscopy.org/artifactory/maven/'
}
}
def bioformatsVersion = '6.9.0'
dependencies {
implementation 'org.codehaus.groovy:groovy-all:3.0.10'
compile("ome:formats-gpl:${bioformatsVersion}") {
exclude group: 'log4j', module: 'log4j'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
compile("ome:bio-formats-tools:${bioformatsVersion}") {
exclude group: 'log4j', module: 'log4j'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.2'
compile('org.apache.logging.log4j:log4j-slf4j-impl:2.17.2')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
sourceSets {
main {
resources {
srcDirs "src/main/resources"
}
}
}
task makeBioFormatsResource(type: WriteProperties) {
outputFile = file("src/main/resources/bioformats.properties")
property("Bioformats-Version", bioformatsVersion)
}
compileJava {
dependsOn tasks.makeBioFormatsResource
}
run {
mainClassName = 'be.cytomine.bioformats.BioFormatServerSocket'
}
jar {
archiveName = 'cytomine-bioformats-wrapper.jar'
manifest {
attributes('Main-Class': 'be.cytomine.bioformats.BioFormatServerSocket')
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}