1
1
plugins {
2
- id ' java-library'
3
- // To create a shadow/fat jar, including dependencies
4
- // (not very useful here)
5
- id ' com.github.johnrengelman.shadow' version ' 7.0.0'
2
+ id ' java-library'
3
+ // To create a shadow/fat jar, including dependencies
4
+ // (not very useful here)
5
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
6
+ id ' org.openjfx.javafxplugin' version ' 0.1.0'
6
7
}
7
8
8
9
repositories {
9
- // mavenLocal()
10
+
10
11
mavenCentral()
11
12
12
13
maven {
@@ -21,17 +22,21 @@ repositories {
21
22
22
23
ext. moduleName = ' qupath.extension.align'
23
24
24
- description = ' QuPath extension for interactive image alignment'
25
-
26
- version = " 0.3.0"
25
+ base {
26
+ description = ' QuPath extension for interactive image alignment'
27
+ version = " 0.4.0"
28
+ group = " io.github.qupath"
29
+ }
30
+ ext. qupathVersion = gradle. ext. qupathVersion
31
+ ext. qupathJavaVersion = 17
27
32
28
33
dependencies {
29
- shadow " io.github.qupath:qupath-gui-fx:0.3.0 "
34
+ shadow " io.github.qupath:qupath-gui-fx:${ qupathVersion } "
30
35
shadow " org.slf4j:slf4j-api:1.7.30"
31
36
}
32
37
33
38
processResources {
34
- from (" ${ projectDir} /LICENSE.txt " ) {
39
+ from (" ${ projectDir} /LICENSE" ) {
35
40
into ' licenses/'
36
41
}
37
42
}
@@ -43,15 +48,9 @@ task copyDependencies(type: Copy) {
43
48
}
44
49
45
50
java {
46
- def version = project. findProperty(' toolchain' )
47
- if (! version)
48
- version = 11
49
- else if (version. strip() == ' skip' )
50
- version = null
51
- if (version != null ) {
52
- logger. quiet(" Setting toolchain to {}" , version)
53
- toolchain {
54
- languageVersion = JavaLanguageVersion . of(version)
55
- }
51
+ toolchain {
52
+ languageVersion = JavaLanguageVersion . of(qupathJavaVersion)
56
53
}
54
+ withSourcesJar()
55
+ withJavadocJar()
57
56
}
0 commit comments