Skip to content

Commit 6b1f6f2

Browse files
committed
fix adding vaadin-dev to certain gradle
1 parent 87f45a4 commit 6b1f6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pit/lib/lib-patch-v25.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ addGradleDep() {
609609
if grep -q "implementation.*com\.vaadin:vaadin-spring-boot-starter" "$buildFile"; then
610610
[ -z "$TEST" ] && warn "Adding implementation '$groupId:$artifactId' after vaadin-spring-boot-starter in $buildFile" || cmd "## Adding implementation '$groupId:$artifactId' after vaadin-spring-boot-starter in $buildFile"
611611

612-
_cmd="perl -pi -e \"s|(\\s*implementation\\s+['\\\"]com\\.vaadin:vaadin-spring-boot-starter['\\\"].*)|\\1\\n implementation '$groupId:$artifactId'|\" \"$buildFile\""
612+
_cmd="perl -pi -e \"s|(\\s*implementation[\\s'\\\"\\\(]+com\\.vaadin:vaadin-spring-boot-starter['\\\"].*)|\\1\\n developmentOnly '$groupId:$artifactId'|\" \"$buildFile\""
613613
cmd "$_cmd"
614614
[ -n "$TEST" ] || eval "$_cmd"
615615
else

0 commit comments

Comments
 (0)