Skip to content

Commit b92f1b0

Browse files
committed
correction
Signed-off-by: BoykoAlex <alex.boyko@broadcom.com>
1 parent 5c705da commit b92f1b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/build-standalone-ls.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ echo "Building standalone LS jar..."
99
cd headless-services
1010
./mvnw -f pom.xml -pl spring-boot-language-server-standalone -am -DskipTests clean package
1111

12-
# Get the version from Maven
13-
base_version=$(./mvnw -q -f spring-boot-language-server-standalone/pom.xml -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | tail -n 1)
12+
# Get the version from Maven using help:evaluate
13+
base_version=$(./mvnw help:evaluate -Dexpression="project.version" -q -DforceStdout -f spring-boot-language-server-standalone/pom.xml)
1414

1515
# Strip -SNAPSHOT if it exists, to get the clean base version
1616
base_version=${base_version%-SNAPSHOT}

0 commit comments

Comments
 (0)