]> nmode's Git Repositories - signal-cli/commitdiff
Add dependencyResolutionManagement
authorAsamK <asamk@gmx.de>
Sun, 19 Feb 2023 12:58:33 +0000 (13:58 +0100)
committerAsamK <asamk@gmx.de>
Sun, 19 Feb 2023 12:58:33 +0000 (13:58 +0100)
build.gradle.kts
lib/build.gradle.kts
settings.gradle.kts

index 987ee2a392a4b7c9a428f1ebf78b25474de982d2..77e6971a0c1cf52d6561f1dd54bd6169a1bb65d8 100644 (file)
@@ -33,19 +33,14 @@ graalvmNative {
     }
 }
 
     }
 }
 
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
 dependencies {
 dependencies {
-    implementation("org.bouncycastle", "bcprov-jdk15on", "1.70")
-    implementation("com.fasterxml.jackson.core", "jackson-databind", "2.14.2")
-    implementation("net.sourceforge.argparse4j", "argparse4j", "0.9.0")
-    implementation("com.github.hypfvieh", "dbus-java-transport-native-unixsocket", "4.2.1")
-    implementation("org.slf4j", "slf4j-api", "2.0.6")
-    implementation("ch.qos.logback", "logback-classic", "1.4.5")
-    implementation("org.slf4j", "jul-to-slf4j", "2.0.6")
+    implementation(libs.bouncycastle)
+    implementation(libs.jackson.databind)
+    implementation(libs.argparse4j)
+    implementation(libs.dbusjava)
+    implementation(libs.slf4j.api)
+    implementation(libs.slf4j.jul)
+    implementation(libs.logback)
     implementation(project(":lib"))
 }
 
     implementation(project(":lib"))
 }
 
index b3dffa2f6af89b6afa8543367f93ff165cee03e1..719f8bb03781f47049c61a27cdc9036b407d5fb0 100644 (file)
@@ -8,21 +8,16 @@ java {
     targetCompatibility = JavaVersion.VERSION_17
 }
 
     targetCompatibility = JavaVersion.VERSION_17
 }
 
-repositories {
-    mavenLocal()
-    mavenCentral()
-}
-
 dependencies {
 dependencies {
-    implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_66")
-    implementation("com.fasterxml.jackson.core", "jackson-databind", "2.14.1")
-    implementation("com.google.protobuf", "protobuf-javalite", "3.21.12")
-    implementation("org.bouncycastle", "bcprov-jdk15on", "1.70")
-    implementation("org.slf4j", "slf4j-api", "2.0.6")
-    implementation("org.xerial", "sqlite-jdbc", "3.40.1.0")
-    implementation("com.zaxxer", "HikariCP", "5.0.1")
-
-    testImplementation("org.junit.jupiter", "junit-jupiter", "5.9.2")
+    implementation(libs.signalservice)
+    implementation(libs.jackson.databind)
+    implementation(libs.protobuf)
+    implementation(libs.bouncycastle)
+    implementation(libs.slf4j.api)
+    implementation(libs.sqlite)
+    implementation(libs.hikari)
+
+    testImplementation(libs.junit)
 }
 
 tasks.named<Test>("test") {
 }
 
 tasks.named<Test>("test") {
index eb34b67bfc671957925077ac4fa3ed25487ccf61..44ff0fbde94cb6b3f488dc949b2516e04d82cb6a 100644 (file)
@@ -1,2 +1,29 @@
+dependencyResolutionManagement {
+    repositories {
+        mavenLocal()
+        mavenCentral()
+    }
+
+    versionCatalogs {
+        create("libs") {
+            library("bouncycastle", "org.bouncycastle", "bcprov-jdk15on").version("1.70")
+            library("jackson.databind", "com.fasterxml.jackson.core", "jackson-databind").version("2.14.2")
+            library("argparse4j", "net.sourceforge.argparse4j", "argparse4j").version("0.9.0")
+            library("dbusjava", "com.github.hypfvieh", "dbus-java-transport-native-unixsocket").version("4.2.1")
+            version("slf4j", "2.0.6")
+            library("slf4j.api", "org.slf4j", "slf4j-api").versionRef("slf4j")
+            library("slf4j.jul", "org.slf4j", "jul-to-slf4j").versionRef("slf4j")
+            library("logback", "ch.qos.logback", "logback-classic").version("1.4.5")
+
+
+            library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_66")
+            library("protobuf", "com.google.protobuf", "protobuf-javalite").version("3.22.0")
+            library("sqlite", "org.xerial", "sqlite-jdbc").version("3.40.1.0")
+            library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
+            library("junit", "org.junit.jupiter", "junit-jupiter").version("5.9.2")
+        }
+    }
+}
+
 rootProject.name = "signal-cli"
 include("lib")
 rootProject.name = "signal-cli"
 include("lib")