mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Setup publishing
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user