Skip to content

Commit c53da3a

Browse files
committed
detect better the presence of vaadin-dev
1 parent ecf03dc commit c53da3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ addDevModeIfNeeded() {
510510
if [ "$has_spring" = false ]; then
511511
# Handle Maven projects
512512
if [ -f "pom.xml" ]; then
513-
if ! grep -q "vaadin-dev" pom.xml 2>/dev/null; then
513+
# Check for actual dependency, not exclusions
514+
if ! grep -A 2 -B 2 "vaadin-dev" pom.xml 2>/dev/null | grep -q "<dependency>" 2>/dev/null; then
514515
[ -z "$TEST" ] && log "Adding vaadin-dev dependency to Maven project (no Spring detected)"
515516
addMavenDep "com.vaadin" "vaadin-dev" "compile"
516517
else

0 commit comments

Comments
 (0)