geforkt von Mirrors/Velocity
34 Zeilen
1.1 KiB
Plaintext
34 Zeilen
1.1 KiB
Plaintext
|
plugins {
|
||
|
java
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
extensions.configure<PublishingExtension> {
|
||
|
repositories {
|
||
|
maven {
|
||
|
credentials(PasswordCredentials::class.java)
|
||
|
|
||
|
name = "paper"
|
||
|
val base = "https://papermc.io/repo/repository/maven"
|
||
|
val releasesRepoUrl = "$base-releases/"
|
||
|
val snapshotsRepoUrl = "$base-snapshots/"
|
||
|
setUrl(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
|
||
|
}
|
||
|
}
|
||
|
publications {
|
||
|
create<MavenPublication>("maven") {
|
||
|
from(components["java"])
|
||
|
pom {
|
||
|
name.set("Velocity")
|
||
|
description.set("The modern, next-generation Minecraft server proxy")
|
||
|
url.set("https://www.velocitypowered.com")
|
||
|
scm {
|
||
|
url.set("https://github.com/PaperMC/Velocity")
|
||
|
connection.set("scm:git:https://github.com/PaperMC/Velocity.git")
|
||
|
developerConnection.set("scm:git:https://github.com/PaperMC/Velocity.git")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|