forked from nnichols/maven-version-bump-action
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified getting of maven and gradle files, no need to define anymore
Fixed gradle settings file
- Loading branch information
1 parent
4cda9ec
commit 2e09c57
Showing
7 changed files
with
25 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/bin/sh | ||
|
||
if [ "${REPO_BUILD}" = "MAVEN" ]; then | ||
cd $POMPATH && mvn help:evaluate -Dexpression=project.version -q -DforceStdout | ||
if [ -f ./pom.xml ] ; then | ||
mvn help:evaluate -Dexpression=project.version -q -DforceStdout | ||
else | ||
BUILD_FILE=$GRADLEPATH/build.gradle | ||
if [ ! -f "$BUILD_FILE" ]; then | ||
BUILD_FILE=$GRADLEPATH/build.gradle.kts | ||
fi | ||
"$GRADLEPATH"/gradlew properties --no-daemon --console=plain -q --build-file "$BUILD_FILE" | grep "^version:" | awk '{printf $2}' | ||
./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters