Skip to content

Commit

Permalink
Use Spring Boot BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Nov 3, 2024
1 parent d12ab22 commit 6341c54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
17 changes: 10 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ repositories {
}

dependencies {
api "io.prometheus:prometheus-metrics-core:$prometheusVersion"
api platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")

api "io.prometheus:prometheus-metrics-core"

compileOnly "net.ttddyy:datasource-proxy:$dsProxyVersion"

Expand All @@ -43,12 +45,12 @@ dependencies {

compileOnly "com.discord4j:discord4j-core:$d4jCoreVersion"

testRuntimeOnly "org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jUnitVersion"
testImplementation"org.junit.jupiter:junit-jupiter-api:$jUnitVersion"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testImplementation"org.junit.jupiter:junit-jupiter-api"
testImplementation"net.dv8tion:JDA:$jdaVersion"
testImplementation"org.mockito:mockito-core:$mockitoVersion"
testImplementation"org.assertj:assertj-core:$assertJVersion"
testImplementation"org.mockito:mockito-core"
testImplementation"org.assertj:assertj-core"
}

test {
Expand All @@ -65,9 +67,10 @@ static def isNonStable(String version) {
}

// https://github.com/ben-manes/gradle-versions-plugin

tasks.withType(com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask) {
rejectVersionIf {
isNonStable(candidate.version) && !isNonStable(currentVersion)
isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
}
}

Expand Down
14 changes: 6 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
org.gradle.warning.mode=all

springBootVersion=3.3.5

javaVersion=21

versionsPluginVersion=0.51.0
grgitPluginVersion=5.3.0

prometheusVersion=1.3.2
dsProxyVersion=1.10
jdaVersion=5.1.2
troveVersion=3.0.3
fastutilVersion=8.5.15
#see https://oss.sonatype.org/content/repositories/snapshots/com/discord4j/discord4j-core/
d4jCoreVersion=3.2.6
jUnitPlatformVersion=1.11.3
jUnitVersion=5.11.3
mockitoVersion=5.14.2
assertJVersion=3.26.3

dsProxyVersion=1.10
troveVersion=3.0.3
fastutilVersion=8.5.15

0 comments on commit 6341c54

Please sign in to comment.