Owner:
Moderne, Inc.
Adds a checkBomAlignment task that fails the build if the BOM's transitive graph requests any org.openrewrite.* or io.moderne.* dependency at more than one version. Hooks into the check lifecycle and any AbstractPublishToMaven task.
https://github.com/openrewrite/rewrite-build-gradle-plugin
Sources: https://github.com/openrewrite/rewrite-build-gradle-plugin.git
Version 2.16.0 (latest)
Created 05 May 2026.
Adds a checkBomAlignment task that fails the build if the BOM's transitive graph requests any org.openrewrite.* or io.moderne.* dependency at more than one version. Hooks into the check lifecycle and any AbstractPublishToMaven task.
Add this plugin to your build using the plugins DSL:
plugins {
id("org.openrewrite.build.bom-alignment") version "2.16.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("org.openrewrite.build.bom-alignment:org.openrewrite.build.bom-alignment.gradle.plugin:2.16.0") }It can then be applied in the precompiled script plugin:plugins { id("org.openrewrite.build.bom-alignment") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("org.openrewrite.build.bom-alignment:org.openrewrite.build.bom-alignment.gradle.plugin:2.16.0") } } apply(plugin = "org.openrewrite.build.bom-alignment") - Applying plugins to all subprojects .