@@ -4,7 +4,7 @@ import com.github.spotbugs.snom.Effort
44plugins {
55 id(" java" )
66 id(" maven-publish" )
7- id(" com.github.mfarsikov.kewt-versioning " ) version " 1.0.0 "
7+ id(" pl.allegro.tech.build.axion-release " ) version " 1.20.1 "
88 id(" se.patrikerdes.use-latest-versions" ) version " 0.2.19"
99 id(" com.github.ben-manes.versions" ) version " 0.52.0"
1010 id(" pmd" )
@@ -14,10 +14,15 @@ plugins {
1414 id(" com.adarshr.test-logger" ) version " 4.0.0"
1515}
1616
17+ scmVersion {
18+ versionIncrementer(" incrementMinor" )
19+ }
20+
21+ version = scmVersion.version
22+
1723allprojects {
1824 apply {
1925 plugin(" java" )
20- plugin(" com.github.mfarsikov.kewt-versioning" )
2126 plugin(" se.patrikerdes.use-latest-versions" )
2227 plugin(" com.github.ben-manes.versions" )
2328 }
@@ -31,11 +36,8 @@ allprojects {
3136 testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.13.4" )
3237 }
3338
34- kewtVersioning.configuration {
35- separator = " "
36- }
37- version = kewtVersioning.version
3839 group = " io.github.open-coap"
40+ project.version = rootProject.version
3941
4042 tasks.withType<DependencyUpdatesTask > {
4143 rejectVersionIf {
@@ -74,10 +76,13 @@ subprojects {
7476 }
7577
7678 withType<JavaCompile > {
77- if (! JavaVersion .current().isJava8) {
79+ options.encoding = " UTF-8"
80+ if (this .name == " compileJava" ) {
7881 options.release.set(8 )
82+ // options.setDeprecation(true)
83+ options.compilerArgs.add(" -Xlint:-options" )
84+ options.compilerArgs.add(" -Werror" )
7985 }
80- options.encoding = " UTF-8"
8186 }
8287
8388 withType<JacocoReport > {
0 commit comments