@@ -10,24 +10,35 @@ plugins {
10
10
}
11
11
12
12
apply plugin : ' java'
13
- apply plugin : ' maven'
13
+ apply plugin : ' maven-publish '
14
14
15
15
group = ' org.dita-ot'
16
- version = ' 1 .0.0'
16
+ version = ' 2 .0.0'
17
17
description = """ DITA Open Toolkit indexing plug-in."""
18
18
19
- sourceCompatibility = 1.8
20
- targetCompatibility = 1.8
19
+ sourceCompatibility = 17
20
+ targetCompatibility = 17
21
21
22
22
repositories {
23
23
mavenCentral()
24
- jcenter()
25
24
}
26
25
dependencies {
27
- compile group : ' org.dita-ot' , name : ' dost' , version : ' [2.1,)'
28
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
29
- testCompile group : ' org.xmlunit' , name : ' xmlunit-core' , version : ' 2.6.3'
30
- testCompile group : ' org.xmlunit' , name : ' xmlunit-matchers' , version : ' 2.6.3'
26
+ implementation group : ' org.apache.ant' , name : ' ant' , version : ' 1.10.14'
27
+ implementation(group : ' com.google.guava' , name : ' guava' , version : ' 32.1.1-jre' ) {
28
+ exclude group : ' org.checkerframework' , module : ' checker-qual'
29
+ exclude group : ' com.google.code.findbugs' , module : ' jsr305'
30
+ exclude group : ' com.google.guava' , module : ' failureaccess'
31
+ exclude group : ' com.google.guava' , module : ' listenablefuture'
32
+ exclude group : ' com.google.errorprone' , module : ' error_prone_annotations'
33
+ exclude group : ' com.google.j2objc' , module : ' j2objc-annotations'
34
+ }
35
+ implementation group : ' net.sf.saxon' , name : ' Saxon-HE' , version : ' 12.4'
36
+ implementation group : ' com.ibm.icu' , name : ' icu4j' , version : ' 74.2'
37
+ implementation group : ' org.slf4j' , name : ' slf4j-api' , version : ' 2.0.12'
38
+ implementation group : ' org.dita-ot' , name : ' dost' , version : ' 4.0.1'
39
+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
40
+ testImplementation group : ' org.xmlunit' , name : ' xmlunit-core' , version : ' 2.6.3'
41
+ testImplementation group : ' org.xmlunit' , name : ' xmlunit-matchers' , version : ' 2.6.3'
31
42
}
32
43
33
44
sourceSets {
@@ -46,12 +57,12 @@ compileTestJava.options.encoding = "UTF-8"
46
57
jar. setArchiveFileName " ${ project.name} .jar"
47
58
48
59
task copyInstall (type : Copy ) {
49
- from(configurations . runtime . allArtifacts . files)
60
+ from(tasks . jar . outputs . files)
50
61
destinationDir = file(" lib" )
51
62
}
52
63
53
64
task dist (type : Zip ) {
54
- from(configurations . runtime . allArtifacts . files) {
65
+ from(tasks . jar . outputs . files) {
55
66
into " lib"
56
67
}
57
68
from(" src/main/resources" ) {
0 commit comments