From f6c40d4707c98ec02ff3fab9913963bc9361a58c Mon Sep 17 00:00:00 2001 From: Atri Date: Fri, 3 Oct 2025 19:35:49 -0400 Subject: [PATCH] fix: Add missing POM data, change namespace --- build.gradle.kts | 50 +++++++++++++++++++++++++++++------------------ gradle.properties | 7 +++++++ 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 06f5b8f..33b5866 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,9 +32,7 @@ kotlin { jvmToolchain(17) } -val projectWebsite: String by project -val license: String by project -val licenseLink: String by project +val namespace: String by project mavenPublishing { @@ -49,21 +47,47 @@ mavenPublishing { signAllPublications() coordinates( - groupId = group as String, - artifactId = rootProject.name, + groupId = namespace, + artifactId = rootProject.name.lowercase(), version = property("version") as String ) pom { + val projectWebsite: String by project + name = rootProject.name url = projectWebsite licenses { + val license: String by project + val licenseLink: String by project + license { name = license url = licenseLink } } + + developers { + val developerName: String by project + val githubProfile: String by project + + developer { + id = developerName + name = developerName + url = githubProfile + } + } + + scm { + val scmUrl: String by project + val scmConnection: String by project + val scmDeveloperConnection: String by project + + url = scmUrl + connection = scmConnection + developerConnection = scmDeveloperConnection + } } } @@ -74,21 +98,9 @@ publishing { create("Compositor") { from(components["java"]) - groupId = group.toString() - artifactId = rootProject.name + groupId = namespace + artifactId = rootProject.name.lowercase() version = property("version") as String - - pom { - name = rootProject.name - url = projectWebsite - - licenses { - license { - name = license - url = licenseLink - } - } - } } } } diff --git a/gradle.properties b/gradle.properties index 8d1d2e4..265ba6b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,6 +2,13 @@ kotlin.code.style=official projectWebsite=https://github.com/AtriusX/Compositor license=MIT License licenseLink=https://github.com/AtriusX/Compositor/blob/main/LICENSE +namespace=io.github.atriusx +developerName=Atrius +githubProfile=https://github.com/AtriusX +scmUrl=https://github.com/AtriusX/Compositor +scmConnection=scm:git:git://github.com/AtriusX/Compositor.git +scmDeveloperConnection=scm:git:ssh://git@github.com/AtriusX/Compositor + # x-release-please-start-version version=0.1.1 # x-release-please-end \ No newline at end of file