pull/64/head
陈云志 5 years ago
parent ed8da22851
commit 8c3e156c1f

@ -1,31 +0,0 @@
#!/bin/bash
#echo " 本脚本参数说明,支持一个参数,当前模块目录"
bootModule=$1
echo "bootModule is :" $bootModule
# 准备 bootjar 依赖目录
rm -rf $bootModule/$bootModule-gui/libs $bootModule/$bootModule-server/libs
mkdir -p $bootModule/$bootModule-gui/libs $bootModule/$bootModule-server/libs
# 编译各个模块
for dir in $(ls .)
do
if [[ -d $dir && -f $dir/build.gradle && $dir != 'build-config' && $dir != $bootModule ]] ; then
# 清理
if [[ -d $dir/$dir-pub ]] ; then rm -rf $dir/$dir-pub/build ;fi
if [[ -d $dir/$dir-gui ]] ; then rm -rf $dir/$dir-gui/build ;fi
if [[ -d $dir/$dir-server ]] ; then rm -rf $dir/$dir-server/build ;fi
rm -rf $dir/.gradle $dir/.idea
echo "gradle home is =" $PATH
$GRADLE_HOME/bin/gradle $gradleArgs --daemon --parallel -x test -DbuildProduct=true -b $dir/build.gradle jar --s
# 拷贝gui server公用jar到对应的目录。
if [[ -d $dir/$dir-pub ]] ; then echo $bootModule/$bootModule-gui/libs/ $bootModule/$bootModule-server/libs | xargs -n 1 cp -f $dir/$dir-pub/build/libs/*.jar ;fi
if [[ -d $dir/$dir-gui ]] ; then cp -f $dir/$dir-gui/build/libs/*.jar $bootModule/$bootModule-gui/libs;fi
if [[ -d $dir/$dir-server ]] ; then cp -f $dir/$dir-server/build/libs/*.jar $bootModule/$bootModule-server/libs;fi
if [ 0 -ne $? ] ; then echo "$dir build failed, please check the error log! "; exit 1 ; fi
echo -e "\033[32m----------------- $dir 模块编译成功 ---------------------- \033[0m"
fi
done
echo "BUILD SUCCESSFUL " `date`

@ -1,24 +0,0 @@
import org.codehaus.groovy.runtime.GStringImpl
//
// gui appServer
ext {
gridntBase = "${devVersion}" as GStringImpl
// gridntBase = "2.1.0"
svgshowVersion = "2.1.0"
protectVersion = "2.1.1"
mybatisPlus = "3.2.0"
debugProduct = System.getProperty("debugProduct") ?: false
}
dependencies {
//------- ----------------------------------------------------------------------------------------
implementation "com.gridnt:gridnt-base-pub:${gridntBase}"
//--------------------------------------------------------------------------------------------
//------- -----------------------------------------------------------------------
implementation "org.springframework.boot:spring-boot-starter-logging:${springBoot}"
}

@ -1,41 +0,0 @@
apply plugin: "org.openjfx.javafxplugin"
//apply plugin: "com.github.ayltai.spring-graalvm-native-plugin"
javafx {
version = "11.0.2"
// version = "15.0.1"
modules = ["javafx.base", "javafx.controls", "javafx.fxml", "javafx.graphics", "javafx.media"
, "javafx.swing", "javafx.web"
]
}
//
dependencies {
//------- ----------------------------------------------------------------------------------------
implementation "com.gridnt:gridnt-base-gui:${gridntBase}"
//------- 1.1 ------------------------------------------------------------------------------
if (debugProduct) {
//
compile fileTree(dir: "libs", include: ["*.jar"])
}
//------- --------------------------------------------------------------------------------
implementation "com.gridnt:springboot-javafx-support:${devVersion}"
//--------------------------------------------------------------------------------------------------
implementation "org.yaml:snakeyaml:1.27"
//---------- ---------------------------------------------------------------------------------------------
testCompile "org.springframework.boot:spring-boot-starter-test:${springBoot}"
//-------runtime-----------------------------------------------------------------------------------------------
testCompile "org.springframework.boot:spring-boot-devtools:${springBoot}"
}

@ -1,33 +0,0 @@
ext {
mybatisPlus = "3.4.1"
}
dependencies {
//------- ----------------------------------------------------------------------------------------
implementation "com.gridnt:gridnt-base-server:${gridntBase}"
//------- 1.1 ---------------------------------------------------------------
if (debugProduct) {
//
compile fileTree(dir: "libs", include: ["*.jar"])
}
//------- --------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
implementation "org.springframework.boot:spring-boot-starter-data-redis:${springBoot}"
implementation "com.fasterxml.jackson.core:jackson-databind:2.12.0"
//-------runtime-----------------------------------------------------------------------------------------------
//---------- ---------------------------------------------------------------------------------------------
testCompile "org.springframework.boot:spring-boot-starter-test:${springBoot}"
}
Loading…
Cancel
Save