Add cloud-bom (#282)

This commit is contained in:
Jason 2021-07-27 00:33:31 -07:00
parent 1b485b9f79
commit 83a17da9a7
6 changed files with 62 additions and 32 deletions

View file

@ -10,13 +10,6 @@ plugins {
} }
indra { indra {
publishSnapshotsTo("incendo", "https://repo.incendo.org/content/repositories/snapshots/")
github("Incendo", "cloud") {
ci(true)
}
mitLicense()
javaVersions { javaVersions {
minimumToolchain(16) minimumToolchain(16)
target(8) target(8)
@ -24,19 +17,6 @@ indra {
} }
checkstyle("8.39") checkstyle("8.39")
configurePublications {
pom {
developers {
developer {
id.set("Sauilitired")
name.set("Alexander Söderberg")
url.set("https://alexander-soderberg.com")
email.set("contact@alexander-soderberg.com")
}
}
}
}
} }
/* Disable checkstyle on tests */ /* Disable checkstyle on tests */

View file

@ -0,0 +1,31 @@
plugins {
id("net.kyori.indra.publishing")
}
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}
indra {
publishSnapshotsTo("incendo", "https://repo.incendo.org/content/repositories/snapshots/")
github("Incendo", "cloud") {
ci(true)
}
mitLicense()
configurePublications {
pom {
developers {
developer {
id.set("Sauilitired")
name.set("Alexander Söderberg")
url.set("https://alexander-soderberg.com")
email.set("contact@alexander-soderberg.com")
}
}
}
}
}

View file

@ -1,10 +0,0 @@
plugins {
id("cloud.base-conventions")
id("net.kyori.indra.publishing")
}
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}

View file

@ -8,8 +8,10 @@ version = "1.6.0-SNAPSHOT"
description = "Command framework and dispatcher for the JVM" description = "Command framework and dispatcher for the JVM"
subprojects { subprojects {
plugins.apply("cloud.base-conventions") if (name != "cloud-bom") {
apply(plugin = "cloud.base-conventions")
}
if (!name.startsWith("example-")) { if (!name.startsWith("example-")) {
plugins.apply("cloud.publishing") apply(plugin = "cloud.publishing-conventions")
} }
} }

View file

@ -0,0 +1,25 @@
plugins {
`java-platform`
}
indra {
configurePublications {
from(components["javaPlatform"])
}
}
dependencies {
constraints {
for (subproject in rootProject.subprojects) {
if (subproject == project) { // the bom itself
continue
}
if (subproject.name.startsWith("example-")) {
continue
}
api(project(subproject.path))
}
}
}

View file

@ -13,6 +13,8 @@ plugins {
rootProject.name = "cloud" rootProject.name = "cloud"
include(":cloud-bom")
// Core Modules // Core Modules
include(":cloud-core") include(":cloud-core")
include(":cloud-services") include(":cloud-services")