mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-02-08 00:21:33 +01:00
This will allow the project to build without a publish. The relocation creates some issues because the relocated jar will not exist until after we run a first build, but, at least the build process is no longer dependent upon the publish task running.
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
plugins {
|
|
`maven-publish`
|
|
id("org.hibernate.build.maven-repo-auth") version "3.0.4"
|
|
}
|
|
|
|
version = "10.0.44-SNAPSHOT"
|
|
|
|
dependencies {
|
|
compileOnly(project(":shared"))
|
|
compileOnly(project(":minimessage", "shadow"))
|
|
compileOnly(libs.io.netty.netty.buffer)
|
|
compileOnly(libs.io.netty.netty.codec)
|
|
compileOnly(libs.commons.lang.commons.lang)
|
|
compileOnly(libs.com.mojang.authlib.new)
|
|
compileOnly(libs.org.spigotmc.spigot.api)
|
|
compileOnly(libs.com.retro.packetevents)
|
|
compileOnly(libs.io.papermc.paper.paper.api);
|
|
compileOnly(libs.it.unimi.dsi.fastutil)
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
// If this is a snapshot build, use the snapshot repo
|
|
// Otherwise, use the release repo
|
|
if (project.version.toString().contains("-SNAPSHOT")) {
|
|
maven {
|
|
name = "md_5-snapshots"
|
|
url = uri("https://repo.md-5.net/content/repositories/snapshots/")
|
|
}
|
|
} else {
|
|
maven {
|
|
name = "md_5-releases"
|
|
url = uri("https://repo.md-5.net/content/repositories/releases/")
|
|
}
|
|
}
|
|
}
|
|
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
|
|
groupId = "LibsDisguises"
|
|
artifactId = "LibsDisguises"
|
|
}
|
|
}
|
|
}
|