Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
c105c71e
Commit
c105c71e
authored
May 10, 2022
by
mingjun97
Committed by
Melledy
May 11, 2022
Browse files
Fix building error
parent
41de6bd2
Changes
1
Show whitespace changes
Inline
Side-by-side
build.gradle
View file @
c105c71e
...
@@ -229,7 +229,6 @@ javadoc {
...
@@ -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 {
...
@@ -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"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment