Skip to content

Commit ef4114c

Browse files
authored
ci: remove jdk 8 from build support (#116)
1 parent bcd4339 commit ef4114c

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
java: [ '8', '17', '21' ]
15+
java: [ '17', '21' ]
1616
permissions:
1717
contents: read
1818
packages: write

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Development
247247

248248
### Requirements:
249249

250-
* JDK 8
250+
* JDK 17
251251
* gradle
252252

253253
### Useful commands:

build.gradle.kts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.github.spotbugs.snom.Effort
44
plugins {
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+
1723
allprojects {
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

Comments
 (0)