diff --git a/distributor-build-logic/src/main/kotlin/distributor.publish-conventions.gradle.kts b/distributor-build-logic/src/main/kotlin/distributor.publish-conventions.gradle.kts new file mode 100644 index 00000000..908ec12d --- /dev/null +++ b/distributor-build-logic/src/main/kotlin/distributor.publish-conventions.gradle.kts @@ -0,0 +1,38 @@ +plugins { + id("net.kyori.indra.publishing") +} + +signing { + val signingKey: String? by project + val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) +} + +indra { + publishReleasesTo("xpdustry", "https://maven.xpdustry.com/releases") + publishSnapshotsTo("xpdustry", "https://maven.xpdustry.com/snapshots") + + gpl3OnlyLicense() + + github("xpdustry", "distributor") { + ci(true) + issues(true) + scm(true) + } + + configurePublications { + pom { + organization { + name.set("Xpdustry") + url.set("https://www.xpdustry.com") + } + + developers { + developer { + id.set("Phinner") + timezone.set("Europe/Brussels") + } + } + } + } +} diff --git a/distributor-command-cloud/build.gradle.kts b/distributor-command-cloud/build.gradle.kts index 50c5e20c..5936197e 100644 --- a/distributor-command-cloud/build.gradle.kts +++ b/distributor-command-cloud/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("distributor.base-conventions") id("distributor.mindustry-conventions") + id("distributor.publish-conventions") } repositories { diff --git a/distributor-common/build.gradle.kts b/distributor-common/build.gradle.kts index 489c8a96..7ad0ad76 100644 --- a/distributor-common/build.gradle.kts +++ b/distributor-common/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("distributor.base-conventions") id("distributor.mindustry-conventions") + id("distributor.publish-conventions") } module { diff --git a/distributor-permission-rank/build.gradle.kts b/distributor-permission-rank/build.gradle.kts index 7a6aa1ed..5254859b 100644 --- a/distributor-permission-rank/build.gradle.kts +++ b/distributor-permission-rank/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("distributor.base-conventions") id("distributor.mindustry-conventions") + id("distributor.publish-conventions") } module {