first commit

This commit is contained in:
Soph :3 2026-02-07 19:52:16 +02:00
commit 42b928f6e1
234 changed files with 27908 additions and 0 deletions

View file

@ -0,0 +1,16 @@
plugins {
id "net.raphimc.class-token-replacer"
}
sourceSets.configureEach {
it.classTokenReplacer {
property("\${version}", project.version)
property("\${commit_hash}", latestCommitHash().get())
}
}
Provider<String> latestCommitHash() {
return providers.exec {
commandLine = ["git", "rev-parse", "--short", "HEAD"]
}.standardOutput.getAsText().map(String::trim)
}