Caleb Cushing
08/09/2024, 8:31 PMtestFixturesImplementation(platform(libs.bundles.spring.bom))
error
Cannot convert the provided notation to an object of type Dependency: property(org.gradle.api.artifacts.ExternalModuleDependencyBundle, map(org.gradle.api.artifacts.ExternalModuleDependencyBundle map(valueof(DependencyBundleValueSource)) check-type())).
The following types/formats are supported:
- String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
- Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
- FileCollections, for example files('some.jar', 'someOther.jar').
- Projects, for example project(':some:project:path').
- ClassPathNotation, for example gradleApi().Vampire
08/09/2024, 9:32 PMephemient
08/09/2024, 10:37 PMephemient
08/09/2024, 10:39 PMspring-platform/build.gradle.kts
plugins {
`java-platform`
}
javaPlatform {
allowDependencies()
}
dependencies {
api(platform(libs.spring.bom))
// etc.
}
and then use
dependencies {
implementation(platform(project(":spring-platform")))
}
or something like thatCaleb Cushing
08/10/2024, 2:17 PMhonestly it feels a bit odd to me to use a bundle as a platform toowhy? a bundle is just a list of dependencies to be applied in order. Why should it matter if it's a platform or not. Platforms are just a specialized type of dependency, but you can still apply them in order
Caleb Cushing
08/10/2024, 2:19 PM