-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
90 lines (72 loc) · 1.91 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
plugins {
id 'java-library'
// To create a shadow/fat jar, including dependencies
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.openjfx.javafxplugin' version '0.1.0'
// Version in settings.gradle
id 'org.bytedeco.gradle-javacpp-platform'
}
ext.moduleName = 'qupath.extension.omero-web'
ext.qupathVersion = gradle.ext.qupathVersion
ext.qupathJavaVersion = 17
base {
description = "QuPath extension to support image reading using OMERO's web API."
version = "0.4.0"
group = "io.github.qupath"
}
repositories {
mavenCentral()
maven {
url "https://maven.scijava.org/content/repositories/releases"
}
maven {
url "https://maven.scijava.org/content/repositories/snapshots"
}
}
dependencies {
implementation libs.commons.text
shadow "io.github.qupath:qupath-gui-fx:${qupathVersion}"
shadow libs.qupath.fxtras
shadow libs.slf4j
}
jar {
manifest {
attributes("Implementation-Title": project.name,
"Implementation-Version": archiveVersion,
"Automatic-Module-Name": moduleName)
}
}
processResources {
from ("${projectDir}/LICENSE") {
into 'licenses/'
}
}
tasks.register("copyDependencies", Copy) {
description "Copy dependencies into the build directory for use elsewhere"
group "QuPath"
from configurations.default
into 'build/libs'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(qupathJavaVersion)
}
withSourcesJar()
withJavadocJar()
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
def strictJavadoc = findProperty('strictJavadoc')
if (!strictJavadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
tasks.named('compileJava') {
options.encoding = 'UTF-8'
}
tasks.withType(org.gradle.jvm.tasks.Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.named('test') {
useJUnitPlatform()
}