Fix building error

This commit is contained in:
mingjun97 2022-05-10 23:55:40 -07:00 committed by Melledy
parent 41de6bd229
commit c105c71e53

View File

@ -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"
} }