3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Add missing isSnapshot

Dieser Commit ist enthalten in:
RednedEpic 2022-04-24 13:22:58 -05:00
Ursprung cee945a66e
Commit 78f36500ca

Datei anzeigen

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