Skip to content

Commit 72b6a5c

Browse files
authored
Merge pull request #27 from JavaSaBr/upgrade-java-stack
Upgrade java stack
2 parents 5337bb7 + 68ca64f commit 72b6a5c

14 files changed

Lines changed: 101 additions & 101 deletions

File tree

build.gradle

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
rootProject.version = '9.9.2'
1+
rootProject.version = "9.10.0"
22
group = 'javasabr'
33

4-
allprojects {
4+
subprojects {
55

66
repositories {
77
mavenCentral()
@@ -11,26 +11,33 @@ allprojects {
1111
apply plugin: "java-test-fixtures"
1212
apply plugin: 'maven-publish'
1313

14-
sourceCompatibility = JavaVersion.VERSION_17
15-
targetCompatibility = JavaVersion.VERSION_17
14+
java {
15+
toolchain {
16+
languageVersion = JavaLanguageVersion.of(21)
17+
}
18+
}
1619

1720
javadoc {
1821
failOnError = false
1922
}
2023

2124
test {
2225
useJUnitPlatform()
26+
failOnNoDiscoveredTests = false
2327
}
2428

2529
dependencies {
2630
compileOnly libs.jetbrains.annotations
31+
compileOnly libs.jspecify
2732
compileOnly libs.lombok
2833
annotationProcessor libs.lombok
2934

3035
testImplementation libs.junit.api
3136
testCompileOnly libs.lombok
3237
testCompileOnly libs.jetbrains.annotations
38+
testCompileOnly libs.jspecify
3339
testRuntimeOnly libs.junit.engine
40+
testRuntimeOnly libs.junit.platform.launcher
3441
testAnnotationProcessor libs.lombok
3542
}
3643

@@ -44,32 +51,28 @@ allprojects {
4451
}
4552
}*/
4653

47-
compileJava {
48-
options.encoding = "UTF-8"
49-
}
50-
51-
compileTestJava {
54+
tasks.withType(JavaCompile).configureEach {
5255
options.encoding = "UTF-8"
5356
}
5457

5558
tasks.withType(Javadoc).configureEach {
5659
options.encoding = "UTF-8"
5760
}
5861

59-
task sourcesJar(type: Jar, dependsOn: classes) {
60-
afterEvaluate {
61-
getArchiveClassifier().set("sources")
62-
getArchiveBaseName().set(jar.getArchiveBaseName())
63-
from sourceSets.main.allSource
64-
}
62+
tasks.register("sourcesJar", Jar) {
63+
dependsOn "classes"
64+
group "build"
65+
archiveClassifier = "sources"
66+
archiveBaseName = jar.archiveBaseName
67+
from sourceSets.main.allSource
6568
}
6669

67-
task javadocJar(type: Jar, dependsOn: javadoc) {
68-
afterEvaluate {
69-
getArchiveClassifier().set("javadoc")
70-
getArchiveBaseName().set(jar.getArchiveBaseName())
71-
from sourceSets.main.allSource
72-
}
70+
tasks.register("javadocJar", Jar) {
71+
dependsOn "javadoc"
72+
group "build"
73+
archiveClassifier = "javadoc"
74+
archiveBaseName = jar.archiveBaseName
75+
from sourceSets.main.allSource
7376
}
7477

7578
publishing {
@@ -106,22 +109,20 @@ allprojects {
106109
}
107110

108111
tasks.register('testJar', Jar) {
109-
getArchiveClassifier().set("test")
112+
archiveClassifier = "test"
110113
from sourceSets.test.output
111114
}
112115

113116
artifacts {
114117
testArtifacts testJar
115118
}
116119

117-
tasks.withType(Test).tap {
118-
configureEach {
119-
maxParallelForks = Runtime.runtime.availableProcessors()
120-
}
120+
tasks.withType(Test).configureEach {
121+
maxParallelForks = Runtime.runtime.availableProcessors()
121122
}
122123
}
123124

124125
wrapper {
125-
gradleVersion = '8.11.1'
126+
gradleVersion = '9.0.0'
126127
distributionType = Wrapper.DistributionType.ALL
127128
}

gradle/libs.versions.toml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
11
[versions]
22
# https://mvnrepository.com/artifact/org.slf4j/slf4j-api
3-
slf4j = "2.0.16"
3+
slf4j = "2.0.17"
44
# https://mvnrepository.com/artifact/io.projectreactor/reactor-core
5-
project-reactor = "3.7.1"
5+
project-reactor = "3.7.8"
66
# https://mvnrepository.com/artifact/jakarta.mail/jakarta.mail-api
77
jakarta-mail = "2.1.3"
8-
angus-mail = "2.0.3"
8+
# https://mvnrepository.com/artifact/org.eclipse.angus/angus-mail
9+
angus-mail = "2.0.4"
910
# https://mvnrepository.com/artifact/org.testcontainers/testcontainers
10-
testcontainers = "1.20.4"
11+
testcontainers = "1.21.3"
1112
# https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
12-
junit-jupiter = "5.11.4"
13+
junit-jupiter = "5.13.4"
1314
# https://mvnrepository.com/artifact/org.jetbrains/annotations
14-
jetbrains-annotations = "26.0.1"
15+
jetbrains-annotations = "26.0.2"
1516
# https://mvnrepository.com/artifact/org.projectlombok/lombok
16-
lombok = "1.18.36"
17+
lombok = "1.18.38"
18+
# https://mvnrepository.com/artifact/org.jspecify/jspecify
19+
jspecify = "1.0.0"
20+
# https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher
21+
junit-platform-launcher = "1.13.4"
1722

1823
[libraries]
1924
project-reactor-core = { module = "io.projectreactor:reactor-core", version.ref = "project-reactor" }
2025
jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains-annotations" }
26+
jspecify = { module = "org.jspecify:jspecify", version.ref = "jspecify" }
2127
lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" }
2228
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit-jupiter" }
2329
junit-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit-jupiter" }
30+
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junit-platform-launcher" }
2431
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
2532
slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
2633
slf4j-ext = { module = "org.slf4j:slf4j-ext", version.ref = "slf4j" }

gradle/wrapper/gradle-wrapper.jar

-14 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-all.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 33 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rlib-common/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
dependencies {
22
api projects.rlibLoggerApi
33
}
4-
5-
jar {
6-
archiveBaseName.set('rlib.common')
7-
}

rlib-fx/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ dependencies {
66
api projects.rlibCommon
77
}
88

9-
jar {
10-
archiveBaseName.set('rlib.fx')
11-
}
12-
139
javafx {
1410
modules = ['javafx.controls']
1511
version = '17'

0 commit comments

Comments
 (0)