Skip to content

Commit

Permalink
Add dependency on BOM to all published modules (except bom itself)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 17, 2025
1 parent 3c83f9a commit 3379f44
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import net.kyori.indra.IndraExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPlugin
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.project
import org.incendo.cloudbuildlogic.city
import org.incendo.cloudbuildlogic.jmp

class CloudPublishingConventions : Plugin<Project> {
override fun apply(target: Project) {
target.plugins.apply("org.incendo.cloud-build-logic.publishing")

if (!target.name.endsWith("-bom")) {
target.dependencies {
JavaPlugin.API_CONFIGURATION_NAME(platform(project(":cloud-bom")))
}
}

target.extensions.configure(IndraExtension::class) {
github("Incendo", "cloud") {
ci(true)
Expand Down

0 comments on commit 3379f44

Please sign in to comment.