Skip to content

Commit

Permalink
Gradle: take version catalog into use
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 30, 2024
1 parent 55b6eda commit dc6dbfd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[versions]
dynatest = "0.24"

[libraries]
dynatest = { module = "com.github.mvysny.dynatest:dynatest", version.ref = "dynatest" }
2 changes: 1 addition & 1 deletion karibu-testing-v10/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
api(project(":mock-servlet-environment5"))
api("com.github.mvysny.karibu-tools:karibu-tools:${properties["karibu_tools_version"]}")

testImplementation("com.github.mvysny.dynatest:dynatest:${properties["dynatest_version"]}")
testImplementation(libs.dynatest)
api(kotlin("test"))
testImplementation("org.slf4j:slf4j-simple:${properties["slf4j_version"]}")

Expand Down
2 changes: 1 addition & 1 deletion karibu-testing-v10/kt10-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
api(project(":karibu-testing-v10"))

// for testing purposes
api("com.github.mvysny.dynatest:dynatest:${properties["dynatest_version"]}")
api(libs.dynatest)
api("org.slf4j:slf4j-simple:${properties["slf4j_version"]}")
api("com.github.mvysny.karibudsl:karibu-dsl:${properties["karibudsl11_version"]}") {
exclude(module = "javax.el")
Expand Down
2 changes: 1 addition & 1 deletion karibu-testing-v23/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
api(project(":karibu-testing-v10"))
api("com.github.mvysny.karibu-tools:karibu-tools-23:${properties["karibu_tools_version"]}")

testImplementation("com.github.mvysny.dynatest:dynatest:${properties["dynatest_version"]}")
testImplementation(libs.dynatest)
testImplementation("org.slf4j:slf4j-simple:${properties["slf4j_version"]}")
}

Expand Down
2 changes: 1 addition & 1 deletion karibu-testing-v24/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {
testImplementation("com.vaadin:vaadin:${properties["vaadin24_version"]}")
api(project(":karibu-testing-v23"))

testImplementation("com.github.mvysny.dynatest:dynatest:${properties["dynatest_version"]}")
testImplementation(libs.dynatest)
testImplementation("org.slf4j:slf4j-simple:${properties["slf4j_version"]}")
}

Expand Down
2 changes: 1 addition & 1 deletion mock-servlet-environment5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {
api(kotlin("stdlib-jdk8"))
implementation("org.slf4j:slf4j-api:${properties["slf4j_version"]}")

testImplementation("com.github.mvysny.dynatest:dynatest:${properties["dynatest_version"]}")
testImplementation(libs.dynatest)
testImplementation("org.slf4j:slf4j-simple:${properties["slf4j_version"]}")
}

Expand Down

0 comments on commit dc6dbfd

Please sign in to comment.