This project is a Bill of Materials for Knot.x projects. It specifies external dependencies versions.
To import it, simply include it in your project dependencies as a platform
:
implementation(platform("io.knotx:knotx-dependencies:${project.version}"))
Then use deps without versions and the BOM logic will resolve the versions accordingly, e.g.
testImplementation("org.junit.jupiter:junit-jupiter-api")
To use it in a composite build include it in your settings.gradle.kts
first:
includeBuild("../knotx-dependencies")
The build
task (or any other main task you depend on) of your project should be executed after building the knotx-dependencies
module. Add this snippet to your build.gradle.kts
:
tasks {
named("build") {
dependsOn(gradle.includedBuild("knotx-dependencies").task(":build"))
}
}