1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Setup publishing

This commit is contained in:
Eclipse
2025-10-14 12:46:55 +00:00
parent 20ad28e81f
commit 9d67610095
9 changed files with 39 additions and 3 deletions

View File

@@ -8,6 +8,10 @@ group = properties["maven_group"]!! as String
val archivesBaseName = properties["archives_base_name"]!! as String
val targetJavaVersion = 21
base {
archivesName = archivesBaseName
}
repositories {
maven {
name = "ParchmentMC"

View File

@@ -0,0 +1,27 @@
plugins {
`maven-publish`
}
val archivesBaseName = properties["archives_base_name"]!! as String
publishing {
repositories {
maven {
name = "eclipseisoffline"
url = uri(
when {
version.toString().endsWith("-SNAPSHOT") -> "https://maven.eclipseisoffline.xyz/snapshots"
else -> "https://maven.eclipseisoffline.xyz/releases"
}
)
credentials(PasswordCredentials::class)
}
}
publications {
register("publish", MavenPublication::class) {
artifactId = archivesBaseName
from(project.components["java"])
}
}
}