Use zhdev repository for publishing

This commit is contained in:
Roman Zhuravlev 2025-11-02 04:26:03 +05:00
parent ab53a18f6c
commit 0cfd243336

View file

@ -101,26 +101,21 @@ subprojects {
publishing { publishing {
repositories { repositories {
maven { maven {
name = "fvdh" name = "zhdev"
url = if (rootProject.version.toString().endsWith("-SNAPSHOT")) { url = uri("https://maven.zhira.net/repository/zhdev/")
uri("https://repo.fvdh.dev/snapshots")
} else {
uri("https://repo.fvdh.dev/releases")
}
credentials { credentials {
username = System.getenv("FVDH_USERNAME") username = System.getenv("MAVEN_USERNAME")
password = System.getenv("FVDH_TOKEN") password = System.getenv("MAVEN_PASSWORD")
} }
} }
} }
publications { publications {
create<MavenPublication>("bukman") { create<MavenPublication>("Bukman") {
artifact(tasks["shadowJar"]) { artifact(tasks["shadowJar"]) {
classifier = "" classifier = ""
} }
artifactId = "bukman-$artifactId" artifactId = "Bukman-$artifactId"
} }
} }
} }
@ -180,26 +175,21 @@ tasks.register<Copy>("copyJars") {
publishing { publishing {
repositories { repositories {
maven { maven {
name = "fvdh" name = "zhdev"
url = if (version.toString().endsWith("-SNAPSHOT")) { url = uri("https://maven.zhira.net/repository/zhdev/")
uri("https://repo.fvdh.dev/snapshots")
} else {
uri("https://repo.fvdh.dev/releases")
}
credentials { credentials {
username = System.getenv("FVDH_USERNAME") username = System.getenv("MAVEN_USERNAME")
password = System.getenv("FVDH_TOKEN") password = System.getenv("MAVEN_PASSWORD")
} }
} }
} }
publications { publications {
create<MavenPublication>("bukman") { create<MavenPublication>("Bukman") {
artifact(tasks["shadowJar"]) { artifact(tasks["shadowJar"]) {
classifier = "" classifier = ""
} }
artifactId = "bukman" artifactId = "Bukman"
} }
} }
} }