Skip to content

Commit dd27a60

Browse files
committed
update libraries
1 parent 1c150bf commit dd27a60

10 files changed

Lines changed: 70 additions & 40 deletions

File tree

build.gradle

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
rootProject.version = '9.9.1-alpha'
22
group = 'com.spaceshift'
33

4-
subprojects {
4+
allprojects {
55

66
repositories {
77
mavenCentral()
88
}
99

1010
apply plugin: "java-library"
11+
apply plugin: "java-test-fixtures"
1112
apply plugin: 'maven-publish'
1213

1314
sourceCompatibility = JavaVersion.VERSION_11
1415
targetCompatibility = JavaVersion.VERSION_11
1516

16-
ext {
17-
projectreactorVersion = '3.2.9.RELEASE'
18-
sl4jVersion = '1.7.26'
19-
javaxMailVersion = "1.5.0-b01"
20-
testcontainersVersion = '1.11.1'
21-
lombokVersion = '1.18.6'
22-
junitJupiterVersion = "5.4.2"
23-
jetbrainsAnnotation = '17.0.0'
24-
bintrayVersion = version
25-
}
26-
2717
javadoc {
2818
failOnError = false
2919
}
@@ -33,15 +23,15 @@ subprojects {
3323
}
3424

3525
dependencies {
36-
compileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
37-
compileOnly "org.projectlombok:lombok:$lombokVersion"
38-
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
39-
40-
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
41-
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
42-
testCompileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
43-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
44-
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
26+
compileOnly libs.jetbrains.annotations
27+
compileOnly libs.lombok
28+
annotationProcessor libs.lombok
29+
30+
testImplementation libs.junit.api
31+
testCompileOnly libs.lombok
32+
testCompileOnly libs.jetbrains.annotations
33+
testRuntimeOnly libs.junit.engine
34+
testAnnotationProcessor libs.lombok
4535
}
4636

4737
/*compileJava {
@@ -58,6 +48,14 @@ subprojects {
5848
options.encoding = "UTF-8"
5949
}
6050

51+
compileTestJava {
52+
options.encoding = "UTF-8"
53+
}
54+
55+
tasks.withType(Javadoc) {
56+
options.encoding = "UTF-8"
57+
}
58+
6159
task sourcesJar(type: Jar, dependsOn: classes) {
6260
afterEvaluate {
6361
getArchiveClassifier().set("sources")

gradle/libs.versions.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[versions]
2+
# https://mvnrepository.com/artifact/org.slf4j/slf4j-api
3+
slf4j = "1.7.36"
4+
# https://mvnrepository.com/artifact/io.projectreactor/reactor-core
5+
project-reactor = "3.4.19"
6+
# https://mvnrepository.com/artifact/javax.mail/mail
7+
javax-mail = "1.5.0-b01"
8+
# https://mvnrepository.com/artifact/org.testcontainers/testcontainers
9+
testcontainers = "1.17.3"
10+
# https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
11+
junit-jupiter = "5.8.2"
12+
# https://mvnrepository.com/artifact/org.jetbrains/annotations
13+
jetbrains-annotations = "23.0.0"
14+
# https://mvnrepository.com/artifact/org.projectlombok/lombok
15+
lombok = "1.18.24"
16+
17+
[libraries]
18+
project-reactor-core = { module = "io.projectreactor:reactor-core", version.ref = "project-reactor" }
19+
jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains-annotations" }
20+
lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" }
21+
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit-jupiter" }
22+
junit-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit-jupiter" }
23+
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
24+
slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
25+
slf4j-ext = { module = "org.slf4j:slf4j-ext", version.ref = "slf4j" }
26+
javax-mail = { module = "javax.mail:mail", version.ref = "javax-mail" }
27+
testcontainers = { module = "org.testcontainers:testcontainers", version.ref = "testcontainers" }
28+
29+
[bundles]
30+
junit = ["junit-engine", "junit-api"]

rlib-common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
api project(":rlib-logger-api")
2+
api projects.rlibLoggerApi
33
}
44

55
jar {

rlib-fx/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
id 'org.openjfx.javafxplugin' version '0.0.8'
2+
id 'org.openjfx.javafxplugin' version '0.0.13'
33
}
44

55
dependencies {
6-
api project(":rlib-common")
6+
api projects.rlibCommon
77
}
88

99
jar {

rlib-logger-impl/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
api project(":rlib-common")
2+
api projects.rlibCommon
33
}
44

55
jar {

rlib-logger-slf4j/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dependencies {
2-
api project(":rlib-logger-api")
3-
api "org.slf4j:slf4j-api:$sl4jVersion"
2+
api projects.rlibLoggerApi
3+
api libs.slf4j.api
44

5-
testRuntime "org.slf4j:slf4j-simple:$sl4jVersion"
5+
testRuntime libs.slf4j.simple
66
}
77

88
jar {

rlib-mail/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dependencies {
2-
api project(":rlib-common")
3-
api "javax.mail:mail:$javaxMailVersion"
2+
api projects.rlibCommon
3+
api libs.javax.mail
44

5-
testImplementation project(":rlib-testcontainers")
5+
testImplementation projects.rlibTestcontainers
66
}
77

88
jar {

rlib-network/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jar {
33
}
44

55
dependencies {
6-
api project(":rlib-common")
7-
api "io.projectreactor:reactor-core:$projectreactorVersion"
8-
testRuntimeOnly project(":rlib-logger-impl")
6+
api projects.rlibCommon
7+
api libs.project.reactor.core
8+
testRuntimeOnly projects.rlibLoggerImpl
99
}

rlib-testcontainers/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
dependencies {
2-
api project(":rlib-common")
3-
api "org.testcontainers:testcontainers:$testcontainersVersion"
4-
api "org.slf4j:slf4j-api:$sl4jVersion"
5-
api "org.slf4j:slf4j-ext:$sl4jVersion"
2+
api projects.rlibCommon
3+
api libs.testcontainers
4+
api libs.slf4j.api
5+
api libs.slf4j.ext
66
// FIXME
77
api "com.kohlschutter.junixsocket:junixsocket-common:2.1.1"
88
api "com.kohlschutter.junixsocket:junixsocket-native-common:2.1.1"
9-
implementation "org.slf4j:slf4j-simple:$sl4jVersion"
9+
implementation libs.slf4j.simple
1010

11-
testImplementation project(":rlib-mail")
11+
testImplementation projects.rlibMail
1212
}
1313

1414
jar {

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
2+
13
rootProject.name = 'rlib'
24

35
include ':rlib-common'

0 commit comments

Comments
 (0)