2023-03-27 00:00:24 +02:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
|
|
|
extensions.configure<PublishingExtension> {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
credentials(PasswordCredentials::class.java)
|
|
|
|
|
|
|
|
name = "paper"
|
2023-03-27 01:47:01 +02:00
|
|
|
val base = "https://repo.papermc.io/repository/maven"
|
2023-03-27 00:00:24 +02:00
|
|
|
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")
|
2023-06-21 15:58:44 +02:00
|
|
|
url.set("https://papermc.io/software/velocity")
|
2023-03-27 00:00:24 +02:00
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|