diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 1e1b343..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,35 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "gradle" - directory: "/" - schedule: - interval: "weekly" - - package-ecosystem: "gradle" - directory: "/api/paper" - schedule: - interval: "weekly" - - package-ecosystem: "gradle" - directory: "/api/velocity" - schedule: - interval: "weekly" - - package-ecosystem: "gradle" - directory: "/velocity" - schedule: - interval: "weekly" - - package-ecosystem: "gradle" - directory: "/paper" - schedule: - interval: "weekly" - - package-ecosystem: "gradle" - directory: "/common" - schedule: - interval: "weekly" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 94bffa1..ea963e7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,4 +28,6 @@ jobs: uses: actions/upload-artifact@v3 with: name: AuthMeVelocity - path: build/libs/AuthMeVelocity.jar \ No newline at end of file + path: |- + velocity/build/libs/AuthMeVelocity-Velocity-*.jar + paper/build/libs/AuthMeVelocity-Paper-*.jar \ No newline at end of file diff --git a/api/paper/build.gradle.kts b/api/paper/build.gradle.kts index 92df27a..089372a 100644 --- a/api/paper/build.gradle.kts +++ b/api/paper/build.gradle.kts @@ -1,6 +1,5 @@ plugins { `java-library` - alias(libs.plugins.indra) id("authmevelocity.publishing") id("authmevelocity.spotless") } diff --git a/api/velocity/build.gradle.kts b/api/velocity/build.gradle.kts index bdcc68e..aa02e5f 100644 --- a/api/velocity/build.gradle.kts +++ b/api/velocity/build.gradle.kts @@ -1,6 +1,5 @@ plugins { `java-library` - alias(libs.plugins.indra) id("authmevelocity.publishing") id("authmevelocity.spotless") } @@ -24,5 +23,5 @@ tasks { "https://jd.papermc.io/velocity/3.0.0/" ) } - } + } } diff --git a/build-logic/src/main/kotlin/authmevelocity.publishing.gradle.kts b/build-logic/src/main/kotlin/authmevelocity.publishing.gradle.kts index 17e955d..15854b9 100644 --- a/build-logic/src/main/kotlin/authmevelocity.publishing.gradle.kts +++ b/build-logic/src/main/kotlin/authmevelocity.publishing.gradle.kts @@ -13,17 +13,20 @@ indra { gpl3OrLaterLicense() + publishReleasesTo("maven central", "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") + publishSnapshotsTo("sonatype snapshots", "https://s01.oss.sonatype.org/content/repositories/snapshots/") + configurePublications { - groupId = project.group as String - artifactId = project.name.replaceFirst("authmevelocity-", "") - version = project.version as String + artifactId = project.name + from(components["java"]) pom { developers { developer { id.set("4drian3d") - name.set("Adrian") + name.set("Adrian Gonzales") + email.set("adriangonzalesval@gmail.com") } } } diff --git a/build.gradle.kts b/build.gradle.kts index 91f84ba..377bf23 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,7 @@ +plugins { + id("net.kyori.indra.publishing.sonatype") version "3.0.1" +} + allprojects { apply() @@ -5,3 +9,7 @@ allprojects { maven("https://repo.papermc.io/repository/maven-public/") } } + +indraSonatype { + useAlternateSonatypeOSSHost("s01") +} diff --git a/gradle.properties b/gradle.properties index 9cee269..36a82f6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -group = io.github._4drian3d +group = io.github.4drian3d version = 4.0.0-SNAPSHOT description = AuthMeReloaded Support for Velocity url = https://modrinth.com/plugin/authmevelocity diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index e008e7f..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,7 +0,0 @@ -jdk: - - openjdk17 -before_install: - - source "$HOME/.sdkman/bin/sdkman-init.sh" - - sdk update - - sdk install java 17.0.6.tem - - sdk use java 17.0.6.tem \ No newline at end of file