forked from qupath/qupath-extension-omero-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (50 loc) · 1.39 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
plugins {
id 'java-library'
// To create a shadow/fat jar, including dependencies
id 'com.github.johnrengelman.shadow' version '7.0.0'
// Reduce JavaCPP dependencies
id 'org.bytedeco.gradle-javacpp-platform' version '1.5.6'
}
ext.moduleName = 'qupath.extension.omero'
archivesBaseName = 'qupath-extension-omero'
description = "QuPath extension to support image reading using OMERO's web API."
version = "0.3.0"
repositories {
// mavenLocal()
mavenCentral()
maven {
url "https://maven.scijava.org/content/repositories/releases"
}
maven {
url "https://maven.scijava.org/content/repositories/snapshots"
}
}
dependencies {
implementation "org.apache.commons:commons-text:1.9"
shadow "io.github.qupath:qupath-gui-fx:0.3.0"
shadow "org.slf4j:slf4j-api:1.7.30"
}
processResources {
from ("${projectDir}/LICENSE.txt") {
into 'licenses/'
}
}
tasks.register("copyDependencies", Copy) {
description "Copy dependencies into the output libs directory"
group "QuPath"
from configurations.default
into 'build/libs'
}
java {
def version = project.findProperty('toolchain')
if (!version)
version = 11
else if (version.strip() == 'skip')
version = null
if (version != null) {
logger.quiet("Setting toolchain to {}", version)
toolchain {
languageVersion = JavaLanguageVersion.of(version)
}
}
}