diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6baf753..f5fb245 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,13 +2,6 @@ name: Build on: [ push ] -env: - GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} - GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} - GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_OSSRH_DEPLOYER }} - SONATYPE_TOKEN: ${{ secrets.SONATYPE_OSSRH_TOKEN }} - jobs: build: runs-on: ubuntu-latest @@ -26,11 +19,12 @@ jobs: - name: Build with Gradle run: ./gradlew test build --no-daemon - - name: Publish to Sonatype + - name: Publish with Gradle if: github.ref == 'refs/heads/master' env: GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + USERNAME: ${{ secrets.REPO_USER }} + TOKEN: ${{ secrets.REPO_TOKEN }} + run: ./gradlew publish --no-daemon \ No newline at end of file diff --git a/README.md b/README.md index 60ee2df..78c61a6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@

Build License -Nexus Minecraft Versions

@@ -24,6 +23,10 @@ ![Sidebar](https://github.com/CatCoderr/ProtocolSidebar/raw/master/assets/sidebar.gif) +⚠️ **Note**: starting from **6.2.7-SNAPSHOT** version, the repository has been moved to https://catcoder.pl.ua/snapshots. +You can find URL for Maven and Gradle in the [Adding to your project](#adding-to-your-project) section. + + ## Donations [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Donate%20Now-yellow?style=for-the-badge&logo=buy-me-a-coffee)](https://www.buymeacoffee.com/catcoderr) @@ -58,8 +61,8 @@ or [maven-shade-plugin](https://maven.apache.org/plugins/maven-shade-plugin/) (f ```xml - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ + catcoder-snapshots + https://catcoder.pl.ua/snapshots ``` ```xml @@ -74,7 +77,7 @@ or [maven-shade-plugin](https://maven.apache.org/plugins/maven-shade-plugin/) (f ```groovy repositories { - maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } + maven { url 'https://catcoder.pl.ua/snapshots' } } ``` ```groovy @@ -87,7 +90,7 @@ dependencies { ```kotlin repositories { - maven("https://oss.sonatype.org/content/repositories/snapshots/") + maven("https://catcoder.pl.ua/snapshots") } ``` ```kotlin diff --git a/build.gradle.kts b/build.gradle.kts index 0c3398c..48b3afb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ plugins { id("java-library") id("maven-publish") - id("io.github.gradle-nexus.publish-plugin") version "1.3.0" id("signing") } @@ -9,9 +8,6 @@ group = "me.catcoder" version = "6.2.7-SNAPSHOT" description = "Powerful feature-packed Minecraft scoreboard library" -extra["sonatypeUsername"] = System.getenv("SONATYPE_USERNAME") -extra["sonatypePassword"] = System.getenv("SONATYPE_PASSWORD") - val adventureVersion = "4.16.0" val paperVersion = "1.20.1-R0.1-SNAPSHOT" val viaVersionVersion = "4.8.1" @@ -105,11 +101,16 @@ publishing { } } } -} -nexusPublishing { repositories { - sonatype() + maven { + name = "Snapshots" + url = uri("https://catcoder.pl.ua/snapshots") + credentials { + username = System.getenv("USERNAME") + password = System.getenv("TOKEN") + } + } } }