mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Refine Qodana config: simplify bootstrap logic and improve POSIX compatibility
This commit is contained in:
parent
f39c19fb5c
commit
a55ff88e08
+7
-13
@@ -8,19 +8,13 @@ linter: qodana-jvm
|
|||||||
profile:
|
profile:
|
||||||
name: qodana.recommended
|
name: qodana.recommended
|
||||||
bootstrap: |
|
bootstrap: |
|
||||||
# Generate sources (including protobuf) so Qodana resolves imports correctly
|
# Generate sources (including protobuf) so Qodana resolves imports correctly.
|
||||||
# Prefer Maven Wrapper if present; fall back to system mvn (POSIX sh compatible)
|
# Use a POSIX-safe, fi-less chain to avoid /bin/sh parsing issues in CI.
|
||||||
# Ensure mvnw is executable if present
|
chmod +x ./mvnw 2>/dev/null || true
|
||||||
if [ -f ./mvnw ]; then chmod +x ./mvnw || true; fi
|
./mvnw -B -q -DskipTests -DskipITs=true generate-sources 2>/dev/null || \
|
||||||
if [ -x ./mvnw ]; then
|
sh ./mvnw -B -q -DskipTests -DskipITs=true generate-sources 2>/dev/null || \
|
||||||
./mvnw -B -q -DskipTests -DskipITs=true generate-sources || true
|
mvn -B -q -DskipTests -DskipITs=true generate-sources 2>/dev/null || \
|
||||||
elif [ -f ./mvnw ]; then
|
echo "[Qodana bootstrap] Maven not available; skipping source generation"
|
||||||
sh ./mvnw -B -q -DskipTests -DskipITs=true generate-sources || true
|
|
||||||
elif command -v mvn >/dev/null 2>&1; then
|
|
||||||
mvn -B -q -DskipTests -DskipITs=true generate-sources || true
|
|
||||||
else
|
|
||||||
echo "[Qodana bootstrap] Maven not available; skipping source generation"
|
|
||||||
fi
|
|
||||||
include:
|
include:
|
||||||
- name: CheckDependencyLicenses
|
- name: CheckDependencyLicenses
|
||||||
exclude:
|
exclude:
|
||||||
|
|||||||
Reference in New Issue
Block a user