Skip to content

Commit 75fc655

Browse files
committed
melting-pot.sh: use valid short property names
There are some artifactIds that begin with a digit rather than a letter, which results in invalid version property names. Prepending the property name with underscore avoids the issue.
1 parent 66a9173 commit 75fc655

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

melting-pot.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,13 +809,15 @@ meltDown() {
809809
do
810810
local g="$(groupId "$dep")"
811811
local a="$(artifactId "$dep")"
812+
local aa
813+
echo "$a" | grep -q '^[0-9]' && aa="_$a" || aa="$a"
812814
local v="$(version "$dep")"
813815
local c="$(classifier "$dep")"
814816
test -z "$c" || continue # skip secondary artifacts
815817
local gav="$g:$a:$v"
816818
test -z "$(isChanged "$gav")" &&
817819
versionProps="$versionProps
818-
<$g.$a.version>$v</$g.$a.version> <$a.version>$v</$a.version>"
820+
<$g.$a.version>$v</$g.$a.version> <$aa.version>$v</$aa.version>"
819821
done
820822

821823
# Override versions of changed GAVs.

0 commit comments

Comments
 (0)