@@ -4,9 +4,13 @@ plugins {
44}
55
66group ' dev.dotspace'
7- version ' 1.0.6 '
7+ version ' 1.0.7 '
88
99allprojects {
10+ ext {
11+ junitVersion = " 5.9.0" ;
12+ }
13+
1014 apply plugin : ' java-library'
1115 apply plugin : ' io.freefair.lombok'
1216
@@ -21,11 +25,38 @@ allprojects {
2125 }
2226
2327 dependencies {
24- api ' org.jetbrains:annotations:23.0.0'
25- testImplementation ' org.junit.jupiter:junit-jupiter:5.9.0'
28+ api (" org.jetbrains:annotations:23.0.0" )
29+
30+ testImplementation (" org.junit.jupiter:junit-jupiter:${ junitVersion} " )
31+ testRuntimeOnly (" org.junit.jupiter:junit-jupiter:${ junitVersion} " )
2632 }
2733
2834 test {
2935 useJUnitPlatform()
3036 }
31- }
37+ }
38+
39+ /**
40+ * Update dependency version in README.md.
41+ */
42+ tasks. register(" updateDependencyInReadMe" ) {
43+ println (" Updating dependency version in README.md..." )
44+ // Update maven Version
45+ ant. replaceregexp(match : ' <version>([0-9\\ .]+)</version>' ,
46+ replace : " <version>${ version} </version>" ,
47+ flags : ' g' ,
48+ byline : true ) {
49+ fileset(dir : ' .' , includes : ' README.md' )
50+ println (" Updated mavem dependency verison." )
51+ }
52+
53+ // Update gradle version
54+ ant. replaceregexp(
55+ match : ' dev\\ .dotspace\\ :common\\ :([0-9\\ .]+)' ,
56+ replace : " dev.dotspace:common:${ version} " ,
57+ flags : ' g' ,
58+ byline : true ) {
59+ fileset(dir : ' .' , includes : ' README.md' )
60+ println (" Updated gradle dependency verison." )
61+ }
62+ }
0 commit comments