Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency on BOM to all published modules (except bom itself) #789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading