From b04ef4c77fd66bd11306b3c46d972293a033702d Mon Sep 17 00:00:00 2001 From: Tofaa2 Date: Sat, 25 Oct 2025 18:15:53 +0400 Subject: [PATCH] Attempt at central publishing 2 --- README.md | 2 +- build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d9cacc7..fa01683 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ EntityLib uses the new Maven Central publishing system via the Central Portal (r ### Setting Up Central Portal Credentials 1. Go to [Central Portal](https://central.sonatype.com/) and log in with your GitHub account. -2. Create a namespace for your group ID (`io.github.tofaa2`). +2. **Create a namespace**: In the "Namespaces" section, create a new namespace for your group ID (`io.github.tofaa2`). This is crucial for publishing to work. 3. Generate a publishing token from the "Account Settings" > "Publishing Tokens". 4. Use your email as the username and the token as the password. diff --git a/build.gradle.kts b/build.gradle.kts index b3ffe5e..5d19bd2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,8 +21,8 @@ fun getVersionMeta(includeHash: Boolean): String { } return "$commitHash-SNAPSHOT" } -version = "$fullVersion${getVersionMeta(true)}" -ext["versionBeta"] = getVersionMeta(true) +version = "$fullVersion${getVersionMeta(false)}" +ext["versionBeta"] = getVersionMeta(false) ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}" tasks {