This message was deleted.
# community-support
s
This message was deleted.
c
the Spring dependency management plugin is not recommended for use.
the versionless dependencies are from Spring BOM - no issues with that, its a good practice to consume BOMs.
m
Is the dependency management plugin adding the Spring BOM behind the scenes? Once I remove that plugin, I do need to add versions to the dependencies. In any case, w/o the BOM, here's what it looks like now:
Copy code
plugins {
	java
	id("org.springframework.boot") version "3.2.2"
}

group = "com.example"
version = "0.0.1-SNAPSHOT"

java {
	toolchain {
		version = JavaVersion.VERSION_21
	}
}

repositories {
	mavenCentral()
}

dependencies {
	implementation("org.springframework.boot:spring-boot-starter-web:3.2.2")
	testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.2")
}

tasks.withType<Test> {
	useJUnitPlatform()
}
p
Nope, you need to add this
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
for each configuration to use the BOM and the dependencies without a version.
v
And you could consider using the new test suites DSL instead of configuring all tasks of type test. Other than that, what was said already, toolchain and built-in BOM support instead of dependency management plugin.
And I personally tend to not set a group if it's not a library and if I set it, then in
gradle.properties
, as well as the version.