initial commit

This commit is contained in:
CaiHQ 2021-09-25 02:23:55 +08:00
parent add4668aba
commit 63b9df4229
4 changed files with 227 additions and 0 deletions

37
.gitignore vendored
View File

@ -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/

36
.gitmodules vendored Normal file
View File

@ -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

145
build.gradle Normal file
View File

@ -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"
}
}

9
settings.gradle Normal file
View File

@ -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'