@@ -6,14 +6,14 @@ plugins {
66 id " com.github.jk1.dependency-license-report"
77}
88
9- group = ' cd.go.plugin.config.json'
10- version " 0.5.2 "
9+ group ' cd.go.plugin.config.json'
10+ version " 0.6.0 "
1111
1212apply plugin : ' java'
1313
1414project. ext {
1515 pluginDesc = [
16- version : project. version,
16+ version : project. version,
1717 goCdVersion : ' 20.4.0'
1818 ]
1919
@@ -28,20 +28,22 @@ repositories {
2828}
2929
3030dependencies {
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 '
3535
3636 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
3838
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'
4243}
4344
4445processResources {
46+ duplicatesStrategy = DuplicatesStrategy . INCLUDE
4547 from(" resource-templates" ) {
4648 filesMatching(' *' ) {
4749 expand project. pluginDesc
@@ -67,18 +69,18 @@ sourceSets {
6769}
6870
6971test {
70- useJUnit {
71- }
72+ useJUnitPlatform()
7273 testLogging {
7374 events " passed" , " skipped" , " failed" , " standardOut"
7475 }
7576}
7677
7778// create a fat jar with all dependencies
7879jar {
79- baseName = project. name
80+ archiveBaseName = project. name
8081 preserveFileTimestamps = false
8182 reproducibleFileOrder = true
83+ duplicatesStrategy = DuplicatesStrategy . INCLUDE
8284
8385 manifest {
8486 attributes ' Main-Class' : ' com.tw.go.config.json.cli.JsonPluginCli'
8991 exclude " NOTICE.txt"
9092 }
9193
92- from { configurations. compile . collect { it. isDirectory() ? it : zipTree(it) } }
94+ from { configurations. runtimeClasspath . collect { it. isDirectory() ? it : zipTree(it) } }
9395}
9496
95-
9697licenseReport {
9798 renderers = [new NoticeFileGenerator (new TeeRenderer (new SimpleHtmlReportRenderer ()), " ${ project.buildDir} /reports/dependency-license/" )]
9899}
0 commit comments