chore: initialize wygj monorepo

This commit is contained in:
2026-07-03 01:25:10 +08:00
commit 62ffcb6e99
1248 changed files with 137340 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR/backend"
mkdir -p "$ROOT_DIR/.data/import"
JAR="ruoyi-admin/target/ruoyi-admin.jar"
NEEDS_BUILD=false
if [[ ! -f "$JAR" ]]; then
NEEDS_BUILD=true
elif find ruoyi-admin ruoyi-common ruoyi-modules -type f \( -name '*.java' -o -name '*.xml' -o -name '*.yml' -o -name 'pom.xml' \) -newer "$JAR" -print -quit | grep -q .; then
NEEDS_BUILD=true
fi
if [[ "$NEEDS_BUILD" == true ]]; then
mvn -pl ruoyi-admin -am -DskipTests package
fi
exec java -jar "$JAR" \
"--spring.datasource.dynamic.datasource.master.url=jdbc:mysql://localhost:13306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true" \
"--spring.data.redis.port=16379" \
"--spring.boot.admin.client.enabled=false" \
"--snail-job.enabled=false" \
"--aihr.import.root=$ROOT_DIR/.data/import"