Use zhdev repository for publishing
This commit is contained in:
parent
ab53a18f6c
commit
0cfd243336
1 changed files with 12 additions and 22 deletions
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue