Recently I’ve been looking into platforms and it seems to me they’re the same as version catalogs, the only difference from what I can tell is semantics.
e.g.
platform
plugins {
`java-platform`
}
dependencies {
constraints {
api("my.dependency:dependency:1.2.3")
}
}
build.gradle
plugins {
`java-library`
}
dependencies {
implementation(platform(project(":platform"))
implementation("my.dependency:dependency")
}
Is functionally equivalent to:
deps.versions.toml
[libs]
dependency = { module = "my.dependency:dependency", version = "1.2.3" }
build.gradle
plugins {
`java-library`
}
dependencies {
implementation(deps.libs.dependency)
}
Is there something I’m missing here?