feat: Improved API publication
This commit is contained in:
parent
fffd9d0858
commit
536ed9e4c1
16
HEADER.txt
Normal file
16
HEADER.txt
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) $YEAR AuthMeVelocity Contributors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
`maven-publish`
|
||||
`java-library`
|
||||
alias(libs.plugins.indra)
|
||||
}
|
||||
|
||||
java {
|
||||
@ -24,13 +25,42 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
indra {
|
||||
javaVersions {
|
||||
testWith().add(17)
|
||||
}
|
||||
|
||||
issues {
|
||||
url("https://github.com/4drian3d/AuthMeVelocity/issues")
|
||||
system("Github Issues")
|
||||
}
|
||||
|
||||
github("4drian3d", "AuthMeVelocity") {
|
||||
ci(true)
|
||||
}
|
||||
|
||||
gpl3OrLaterLicense()
|
||||
|
||||
scm {
|
||||
connection("scm:git:git://github.com/4drian3d/AuthMeVelocity.git")
|
||||
developerConnection("scm:git:ssh://github.com/4drian3d/AuthMeVelocity.git")
|
||||
url("http://github.com/4drian3d/AuthMeVelocity/")
|
||||
}
|
||||
|
||||
configurePublications {
|
||||
groupId = project.group as String
|
||||
artifactId = project.name
|
||||
artifactId = "api-paper"
|
||||
version = project.version as String
|
||||
from(components["java"])
|
||||
|
||||
pom {
|
||||
developers {
|
||||
developer {
|
||||
id.set("4drian3d")
|
||||
name.set("Adrian")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
`maven-publish`
|
||||
`java-library`
|
||||
alias(libs.plugins.indra)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -13,22 +14,52 @@ java {
|
||||
|
||||
tasks {
|
||||
javadoc {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
(options as StandardJavadocDocletOptions).links(
|
||||
"https://jd.adventure.kyori.net/api/4.11.0/",
|
||||
"https://jd.adventure.kyori.net/text-minimessage/4.11.0/",
|
||||
(options as? StandardJavadocDocletOptions)?.run{
|
||||
encoding = Charsets.UTF_8.name()
|
||||
links(
|
||||
"https://jd.adventure.kyori.net/api/4.12.0/",
|
||||
"https://jd.adventure.kyori.net/text-minimessage/4.12.0/",
|
||||
"https://jd.papermc.io/velocity/3.0.0/"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
indra {
|
||||
javaVersions {
|
||||
testWith().add(17)
|
||||
}
|
||||
|
||||
issues {
|
||||
url("https://github.com/4drian3d/AuthMeVelocity/issues")
|
||||
system("Github Issues")
|
||||
}
|
||||
|
||||
github("4drian3d", "AuthMeVelocity") {
|
||||
ci(true)
|
||||
}
|
||||
|
||||
gpl3OrLaterLicense()
|
||||
|
||||
scm {
|
||||
connection("scm:git:git://github.com/4drian3d/AuthMeVelocity.git")
|
||||
developerConnection("scm:git:ssh://github.com/4drian3d/AuthMeVelocity.git")
|
||||
url("http://github.com/4drian3d/AuthMeVelocity/")
|
||||
}
|
||||
|
||||
configurePublications {
|
||||
groupId = project.group as String
|
||||
artifactId = project.name
|
||||
artifactId = "api-velocity"
|
||||
version = project.version as String
|
||||
from(components["java"])
|
||||
|
||||
pom {
|
||||
developers {
|
||||
developer {
|
||||
id.set("4drian3d")
|
||||
name.set("Adrian")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -9,6 +9,7 @@ repositories {
|
||||
|
||||
allprojects {
|
||||
apply<JavaPlugin>()
|
||||
|
||||
repositories {
|
||||
maven("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
group = me.adrianed.authmevelocity
|
||||
version = 3.0.5
|
||||
version = 3.0.6-SNAPSHOT
|
||||
description = AuthMeReloaded Support for Velocity
|
||||
url = https://modrinth.com/plugin/authmevelocity
|
||||
id = authmevelocity
|
||||
|
@ -15,6 +15,7 @@ configurate = "4.1.2"
|
||||
adventure = "4.12.0"
|
||||
blossom = "1.3.1"
|
||||
geantyref = "1.3.13"
|
||||
indra = "3.0.1"
|
||||
|
||||
[libraries]
|
||||
|
||||
@ -40,3 +41,4 @@ configurate-hocon = { group = "org.spongepowered", name = "configurate-hocon", v
|
||||
pluginyml-bukkit = { id = "net.minecrell.plugin-yml.bukkit", version.ref = "pluginyml" }
|
||||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
|
||||
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
|
||||
indra = { id = "net.kyori.indra.publishing", version.ref = "indra" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user