Skip to content

Commit 74be1cc

Browse files
Add usage of the junit bom (#72)
Co-authored-by: theEvilReaper <[email protected]>
1 parent 7ed3928 commit 74be1cc

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@ plugins {
44
}
55

66
group = "net.onelitefeather"
7-
version = "1.5.0"
7+
version = "1.5.1"
88

99
javaPlatform {
1010
allowDependencies()
1111
}
1212

1313
dependencies {
14+
api(platform(libs.junit.bom))
1415
constraints {
1516
api(libs.minestom)
1617
api(libs.adventure.minimessage)
1718
api(libs.cyano)
18-
api(libs.junit.jupiter.api)
19-
api(libs.junit.jupiter.engine)
20-
api(libs.junit.jupiter.params)
21-
api(libs.junit.platform.launcher)
2219
api(libs.mockito.core)
2320
api(libs.mockito.junit.jupiter)
2421
}

settings.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ dependencyResolutionManagement {
2323
create("libs") {
2424
version("minestom", "2025.10.31-1.21.10")
2525
version("adventure", "4.25.0")
26-
version("junit", "6.0.1")
27-
version("junit.platform", "6.0.1")
26+
version("junit.bom", "6.0.1")
2827
version("mockito", "5.20.0")
2928
version("cyano", "0.4.1")
3029

@@ -33,10 +32,7 @@ dependencyResolutionManagement {
3332
library("adventure.minimessage", "net.kyori", "adventure-text-minimessage").versionRef("adventure")
3433

3534
// Junit libraries
36-
library("junit.jupiter.api", "org.junit.jupiter", "junit-jupiter-api").versionRef("junit")
37-
library("junit.jupiter.engine", "org.junit.jupiter", "junit-jupiter-engine").versionRef("junit")
38-
library("junit.jupiter.params", "org.junit.jupiter", "junit-jupiter-params").versionRef("junit")
39-
library("junit.platform.launcher", "org.junit.platform", "junit-platform-launcher").versionRef("junit.platform")
35+
library("junit.bom", "org.junit", "junit-bom").versionRef("junit.bom")
4036

4137
// Mock libraries
4238
library("mockito-core", "org.mockito", "mockito-core").versionRef("mockito")

0 commit comments

Comments
 (0)