mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 18:12:52 +08:00
Fix building error
This commit is contained in:
parent
41de6bd229
commit
c105c71e53
@ -229,7 +229,6 @@ javadoc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task injectGitHash {
|
task injectGitHash {
|
||||||
doLast {
|
|
||||||
def gitCommitHash = {
|
def gitCommitHash = {
|
||||||
try {
|
try {
|
||||||
return 'git rev-parse --verify --short HEAD'.execute().text.trim()
|
return 'git rev-parse --verify --short HEAD'.execute().text.trim()
|
||||||
@ -244,10 +243,8 @@ task injectGitHash {
|
|||||||
public static final String GIT_HASH = \"${gitCommitHash()}\";
|
public static final String GIT_HASH = \"${gitCommitHash()}\";
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
dependsOn "generateProto"
|
dependsOn "generateProto"
|
||||||
dependsOn "injectGitHash"
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user