publish: Maven Central

resolves #74
This commit is contained in:
Adrian 2023-02-08 11:30:05 -05:00
parent 5ef6f99236
commit 04264b0ebd
No known key found for this signature in database
GPG Key ID: FB8EF84DCE1BE452
8 changed files with 20 additions and 51 deletions

View File

@ -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"

View File

@ -28,4 +28,6 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: AuthMeVelocity
path: build/libs/AuthMeVelocity.jar
path: |-
velocity/build/libs/AuthMeVelocity-Velocity-*.jar
paper/build/libs/AuthMeVelocity-Paper-*.jar

View File

@ -1,6 +1,5 @@
plugins {
`java-library`
alias(libs.plugins.indra)
id("authmevelocity.publishing")
id("authmevelocity.spotless")
}

View File

@ -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/"
)
}
}
}
}

View File

@ -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")
}
}
}

View File

@ -1,3 +1,7 @@
plugins {
id("net.kyori.indra.publishing.sonatype") version "3.0.1"
}
allprojects {
apply<JavaPlugin>()
@ -5,3 +9,7 @@ allprojects {
maven("https://repo.papermc.io/repository/maven-public/")
}
}
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}

View File

@ -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

View File

@ -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