DataLockLib/plugin/build.gradle.kts

35 lines
688 B
Plaintext
Raw Normal View History

2022-10-19 16:09:43 +00:00
import java.io.ByteArrayOutputStream
2022-10-19 15:30:58 +00:00
plugins {
`maven-publish`
id("com.github.johnrengelman.shadow")
id("xyz.jpenilla.run-paper") version "1.0.6"
}
dependencies {
implementation(project(":api")) // API
compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT") // Galaxy
}
tasks {
shadowJar {
2022-10-19 16:09:43 +00:00
archiveFileName.set("${rootProject.name}.jar")
2022-10-19 15:30:58 +00:00
}
build {
dependsOn(shadowJar)
}
}
2022-10-19 16:09:43 +00:00
fun gitCommit(): String {
val os = ByteArrayOutputStream()
project.exec {
isIgnoreExitValue = true
commandLine = "git rev-parse --short HEAD".split(" ")
standardOutput = os
}
return String(os.toByteArray()).trim()
}