Settings Convention Plugin¶
The Settings convention applies the Gradle Develocity and Foojay plugins, and installs the Metaborg version catalog.
settings.gradle.kts
pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
}
}
plugins {
id("org.metaborg.convention.settings") version "0.0.11"
}
In contrast to the other plugin, the Settings convention plugin must be applied in the project's settings.gradle.kts
.
After applying the Settings convention plugin, other plugins applied in projects' build.gradle.kts
files no longer need a version number.
After configuring the plugin, you can use the libs
version catalog to add dependencies to your project.
See the Version Catalog to see the defined libraries.
Configuration¶
The plugin can be configured using the settingsConvention
extension:
settings.gradle.kts
settingsConvention {
// No options.
}