Add missing isSnapshot

This commit is contained in:
RednedEpic 2022-04-24 13:22:58 -05:00
parent cee945a66e
commit 78f36500ca

View file

@ -28,6 +28,9 @@ import org.gradle.api.Project
import org.gradle.api.artifacts.ProjectDependency import org.gradle.api.artifacts.ProjectDependency
import org.gradle.kotlin.dsl.named import org.gradle.kotlin.dsl.named
fun Project.isSnapshot(): Boolean =
version.toString().endsWith("-SNAPSHOT")
fun Project.relocate(pattern: String) { fun Project.relocate(pattern: String) {
tasks.named<ShadowJar>("shadowJar") { tasks.named<ShadowJar>("shadowJar") {
relocate(pattern, "org.geysermc.geyser.shaded.$pattern") relocate(pattern, "org.geysermc.geyser.shaded.$pattern")