first commit
This commit is contained in:
commit
42b928f6e1
234 changed files with 27908 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue