Skip to content

Commit

Permalink
Gradle version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoniRokitnicki committed Jun 19, 2024
1 parent cc80bd1 commit a54fb8b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ repositories {
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
dependencies {
implementation(libs.annotations)
implementation("org.jsoup:jsoup:1.17.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0-M2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.0-M2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.0-M2")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.17.1")
implementation("com.google.code.findbugs:jsr305:3.0.2")
testImplementation("org.junit-pioneer:junit-pioneer:2.2.0")
implementation(libs.jsr305)

implementation(libs.jsoup)
implementation(libs.jackson.dataformat.toml)

testRuntimeOnly(libs.junit.jupiter.engine)
testImplementation(libs.junit.jupiter.api)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.junit.pioneer)
}

// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
Expand Down
12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[versions]
# libraries
annotations = "24.1.0"
jsoup = "1.17.2"
junit = "5.11.0-M2"
jackson = "2.17.1"
jsr305 = "3.0.2"
pioneer = "2.2.0"

# plugins
kotlin = "1.9.24"
Expand All @@ -11,6 +16,13 @@ kover = "0.7.6"

[libraries]
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
jsoup = { group = "org.jsoup", name = "jsoup", version.ref = "jsoup" }
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit" }
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit" }
junit-jupiter-params = { group = "org.junit.jupiter", name = "junit-jupiter-params", version.ref = "junit" }
jackson-dataformat-toml = { group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-toml", version.ref = "jackson" }
jsr305 = { group = "com.google.code.findbugs", name = "jsr305", version.ref = "jsr305" }
junit-pioneer = { group = "org.junit-pioneer", name = "junit-pioneer", version.ref = "pioneer" }

[plugins]
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
Expand Down

0 comments on commit a54fb8b

Please sign in to comment.