From 63b9df4229d10890d9ecff0ba747cc5a64339294 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Sat, 25 Sep 2021 02:23:55 +0800 Subject: [PATCH] initial commit --- .gitignore | 37 ++++++++++++ .gitmodules | 36 ++++++++++++ build.gradle | 145 ++++++++++++++++++++++++++++++++++++++++++++++++ settings.gradle | 9 +++ 4 files changed, 227 insertions(+) create mode 100644 .gitmodules create mode 100644 build.gradle create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore index a1c2a23..b5feb47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,36 @@ +*~ +gradlew +gradlew.bat +gmssl/* +front-agent/runnable +front-agent/WebContent/bdcontract4baas +.idea/ +*.iml +/.gradle/ +/gradle/ +.DS_Store +/build/ +*/build/* +/log/ +/NodeCenterDB/ +/ContractDB/ +/ContractManagerDB/ +/front-cluster/temp/ +/front-cluster/testADSP/ +/BDWareProjectDir/ +/bin/ +/test-tool/testinput/ +/testinput/ +/testresult/ +/testtime/ +/testPerformance/ +/test-tool/testresult/ +/front-agent/connectOthers.txt +/front-agent/executeLog.txt +# eclipse +/.classpath +/.project +/.settings # Compiled class file *.class @@ -21,3 +54,7 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* +/doc/build/html/ +cmconfig.json +ncconfig.json +/handleRecords/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..436b4f1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,36 @@ +[submodule "cm"] + path = cm + url = https://gitee.com/BDWare/cm.git + branch = master +[submodule "agent-backend"] + path = agent-backend + url = https://gitee.com/BDWare/agent-backend.git + branch = master +[submodule "router-backend"] + path = router-backend + url = https://gitee.com/BDWare/router-backend.git + branch = master +[submodule "router-frontend"] + path = router-frontend + url = https://gitee.com/BDWare/router-frontend.git + branch = master +[submodule "genparser"] + path = genparser + url = https://gitee.com/BDWare/genparser.git + branch = master +[submodule "gmhelper"] + path = gmhelper + url = https://gitee.com/BDWare/gmhelper.git + branch = master +[submodule "front-base"] + path = front-base + url = https://gitee.com/BDWare/front-base.git + branch = master +[submodule "common"] + path = common + url = https://gitee.com/BDWare/common.git + branch = master +[submodule "mockjava"] + path = mockjava + url = https://gitee.com/BDWare/MockJava.git + branch = master \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..58d6768 --- /dev/null +++ b/build.gradle @@ -0,0 +1,145 @@ +plugins { + id 'java' + id 'idea' +} +def currVersion = "1.5.0" +ext.projectIds = ['group': 'com.bdware.sc', 'version': currVersion] +//group 'com.bdware.sc' +//version '1.4.4-SNAPSHOT' +sourceCompatibility = 1.8 + +project(':genparser') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':common') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':cp') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':cm') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':front-base') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':front-agent') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':front-cluster') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(":contract-template") { + group = projectIds.group + version = projectIds.version + repositories { + mavenCentral() + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(":test-tool") { + group = projectIds.group + version = projectIds.version + apply plugin: 'java' + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + maven { url 'https://mvnrepository.com/artifact/org.apache.poi/poi' } + mavenCentral() + } +} + +project(":gmhelper") { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':treeops') { + group = projectIds.group + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +project(':treeops-front') { + group = projectIds.group + version = projectIds.version + apply plugin: 'java' + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + +tasks.withType(JavaCompile) { + options.compilerArgs << '-Xlint:none' + options.compilerArgs << '-Xlint:deprecation' << "-Werror" +} + +repositories { + mavenCentral() +} + +task buildDocOnly(type: Exec) { + commandLine "sh", "script/prepareDoc.sh" +} + +task copyDocs(dependsOn: [":buildDocOnly", ":web-client:buildZip", ":java-client:buildConfigTool"]) { + doLast { + println "copyDocs successfully" + } +} + +task buildBundle(dependsOn: [":common:buildBundle"]) { + doLast { + println "buildBundle in ./build/output/ successfully" + } +} + +task releaseForBaaS(dependsOn: [":cp:buildBundle", ":front-agent:buildBDServerZipMin", + ":front-cluster:buildBDServerClusterZip", + ":contract-template:buildContractTemplateZip"]) { + doLast { + println "release for baas as ./contract-template/build/bdtemplate.zip\n" + + "\t./front-agent/build/bdserver-min.zip\n" + + "\t./front-cluster/build/bdserver-cluster.zip" + } +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..8fbcaf1 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,9 @@ +rootProject.name = 'BDContract' +include 'common' +include 'gmhelper' +include 'genparser' +include 'mockjava' +include 'cm' +include 'front-base' +include 'agent-backend' +include 'router-backend'