mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-04 23:53:20 +01:00
56 lines
1.6 KiB
Kotlin
56 lines
1.6 KiB
Kotlin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
dependencies {
|
|
implementation("org.bstats:bstats-bukkit:3.0.1")
|
|
implementation("net.kyori:adventure-platform-bukkit:4.4.1")
|
|
|
|
testImplementation("org.openjdk.jmh:jmh-core:1.32")
|
|
testImplementation("org.openjdk.jmh:jmh-generator-annprocess:1.32")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
|
|
}
|
|
|
|
val javaComponent: SoftwareComponent = components["java"]
|
|
|
|
base {
|
|
archivesName.set("PlaceholderAPI-Spigot")
|
|
}
|
|
|
|
tasks {
|
|
withType<ShadowJar> {
|
|
archiveClassifier.set("")
|
|
archiveBaseName.set("PlaceholderAPI-Spigot")
|
|
|
|
relocate("org.bstats", "me.clip.placeholderapi.metrics")
|
|
relocate("net.kyori", "me.clip.placeholderapi.libs.kyori")
|
|
|
|
exclude("META-INF/versions/**")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
artifactId = "placeholderapi"
|
|
from(javaComponent)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
if ("-DEV" in version.toString()) {
|
|
url = uri("https://repo.extendedclip.com/snapshots")
|
|
} else {
|
|
url = uri("https://repo.extendedclip.com/releases")
|
|
}
|
|
|
|
credentials {
|
|
username = System.getenv("JENKINS_USER")
|
|
password = System.getenv("JENKINS_PASS")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
publish.get().setDependsOn(listOf(build.get()))
|
|
} |