Skip to content

Commit 8c81bb3

Browse files
chore(deps): add version catalog for dependencies and update build.gradle.kts
1 parent ace51b3 commit 8c81bb3

2 files changed

Lines changed: 29 additions & 9 deletions

File tree

build.gradle.kts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ plugins {
22
`java-library`
33
`maven-publish`
44
signing
5-
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
5+
alias(libs.plugins.nexus.publish)
66
}
77

88
group = "com.widen"
99
version = "3.0.0-SNAPSHOT"
1010
description = "Utility class for constructing syntactically correct HTTP URLs using a fluent method-chaining API"
1111

12-
val repoUrl = "https://github.com/Widen/${project.name}"
12+
val repoUrl = "https://github.com/Widen/urlbuilder"
1313

1414
java {
1515
toolchain {
@@ -24,17 +24,16 @@ repositories {
2424
}
2525

2626
dependencies {
27-
implementation("org.bouncycastle:bcprov-jdk15to18:1.83")
28-
implementation("org.bouncycastle:bcpkix-jdk15to18:1.83")
27+
implementation(libs.bundles.bouncycastle)
2928

3029
// JUnit 5
31-
testImplementation(platform("org.junit:junit-bom:5.13.4"))
32-
testImplementation("org.junit.jupiter:junit-jupiter")
33-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
30+
testImplementation(platform(libs.junit.bom))
31+
testImplementation(libs.junit.jupiter)
32+
testRuntimeOnly(libs.junit.platform.launcher)
3433

3534
// Other test dependencies
36-
testImplementation("commons-io:commons-io:2.21.0")
37-
testImplementation("org.slf4j:slf4j-simple:2.0.17")
35+
testImplementation(libs.commons.io)
36+
testImplementation(libs.slf4j.simple)
3837
}
3938

4039
tasks.test {

gradle/libs.versions.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[versions]
2+
bouncycastle = "1.83"
3+
commons-io = "2.21.0"
4+
junit = "5.13.4"
5+
nexus-publish = "2.0.0"
6+
slf4j = "2.0.17"
7+
8+
[libraries]
9+
bouncycastle-bcprov = { module = "org.bouncycastle:bcprov-jdk15to18", version.ref = "bouncycastle" }
10+
bouncycastle-bcpkix = { module = "org.bouncycastle:bcpkix-jdk15to18", version.ref = "bouncycastle" }
11+
commons-io = { module = "commons-io:commons-io", version.ref = "commons-io" }
12+
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
13+
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
14+
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" }
15+
slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
16+
17+
[bundles]
18+
bouncycastle = ["bouncycastle-bcprov", "bouncycastle-bcpkix"]
19+
20+
[plugins]
21+
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexus-publish" }

0 commit comments

Comments
 (0)