@@ -6,14 +6,14 @@ plugins {
6
6
id " com.github.jk1.dependency-license-report"
7
7
}
8
8
9
- group = ' cd.go.plugin.config.json'
10
- version " 0.5.2 "
9
+ group ' cd.go.plugin.config.json'
10
+ version " 0.6.0 "
11
11
12
12
apply plugin : ' java'
13
13
14
14
project. ext {
15
15
pluginDesc = [
16
- version : project. version,
16
+ version : project. version,
17
17
goCdVersion : ' 20.4.0'
18
18
]
19
19
@@ -28,20 +28,22 @@ repositories {
28
28
}
29
29
30
30
dependencies {
31
- compile group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.5 '
32
- compile group : ' commons-io' , name : ' commons-io' , version : ' 2.6 '
33
- compile group : ' org.apache.ant' , name : ' ant' , version : ' 1.10.7 '
34
- compile group : ' com.beust' , name : ' jcommander' , version : ' 1.78 '
31
+ implementation group : ' com.google.code.gson' , name : ' gson' , version : ' 2.9.1 '
32
+ implementation group : ' commons-io' , name : ' commons-io' , version : ' 2.11.0 '
33
+ implementation group : ' org.apache.ant' , name : ' ant' , version : ' 1.10.12 '
34
+ implementation group : ' com.beust' , name : ' jcommander' , version : ' 1.82 '
35
35
36
36
compileOnly group : ' cd.go.plugin' , name : ' go-plugin-api' , version : project. pluginApiVersion
37
- testCompile group : ' cd.go.plugin' , name : ' go-plugin-api' , version : project. pluginApiVersion
37
+ testImplementation group : ' cd.go.plugin' , name : ' go-plugin-api' , version : project. pluginApiVersion
38
38
39
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
40
- testCompile group : ' org.mockito' , name : ' mockito-core' , version : ' 3.0.0'
41
- testCompile group : ' org.hamcrest' , name : ' hamcrest-core' , version : ' 2.1'
39
+ testImplementation group : ' org.junit.jupiter' , name : ' junit-jupiter-api' , version : ' 5.9.0'
40
+ testRuntimeOnly group : ' org.junit.jupiter' , name : ' junit-jupiter-engine' , version : ' 5.9.0'
41
+ testImplementation group : ' org.mockito' , name : ' mockito-core' , version : ' 4.6.1'
42
+ testImplementation group : ' org.hamcrest' , name : ' hamcrest' , version : ' 2.2'
42
43
}
43
44
44
45
processResources {
46
+ duplicatesStrategy = DuplicatesStrategy . INCLUDE
45
47
from(" resource-templates" ) {
46
48
filesMatching(' *' ) {
47
49
expand project. pluginDesc
@@ -67,18 +69,18 @@ sourceSets {
67
69
}
68
70
69
71
test {
70
- useJUnit {
71
- }
72
+ useJUnitPlatform()
72
73
testLogging {
73
74
events " passed" , " skipped" , " failed" , " standardOut"
74
75
}
75
76
}
76
77
77
78
// create a fat jar with all dependencies
78
79
jar {
79
- baseName = project. name
80
+ archiveBaseName = project. name
80
81
preserveFileTimestamps = false
81
82
reproducibleFileOrder = true
83
+ duplicatesStrategy = DuplicatesStrategy . INCLUDE
82
84
83
85
manifest {
84
86
attributes ' Main-Class' : ' com.tw.go.config.json.cli.JsonPluginCli'
89
91
exclude " NOTICE.txt"
90
92
}
91
93
92
- from { configurations. compile . collect { it. isDirectory() ? it : zipTree(it) } }
94
+ from { configurations. runtimeClasspath . collect { it. isDirectory() ? it : zipTree(it) } }
93
95
}
94
96
95
-
96
97
licenseReport {
97
98
renderers = [new NoticeFileGenerator (new TeeRenderer (new SimpleHtmlReportRenderer ()), " ${ project.buildDir} /reports/dependency-license/" )]
98
99
}
0 commit comments