From 19747b2811020bab6e1bad90288f3336ef160ca1 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Mon, 1 Nov 2021 11:28:54 +0800 Subject: [PATCH] initial commit --- .gitignore | 5 +++++ .gitmodules | 8 ++++++++ README.md | 20 ++++++++++++++++++++ build.gradle | 24 ++++++++++++++++++++++++ settings.gradle | 2 ++ 5 files changed, 59 insertions(+) create mode 100644 .gitmodules create mode 100644 README.md create mode 100644 build.gradle create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore index a1c2a23..7577bc7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +.gradle +.idea +gradlew +gradlew.bat +gradle # Compiled class file *.class diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d7b1c8f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,8 @@ +[submodule "datanet-search-engine-front"] + path = datanet-search-engine-front + url = git@gitee.com:BDWare/datanet-search-engine-front.git + branch = master +[submodule "datanet-search-engine-backend"] + path = datanet-search-engine-backend + url = git@gitee.com:BDWare/datanet-search-engine-backend.git + branch = master diff --git a/README.md b/README.md new file mode 100644 index 0000000..865993d --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# 项目说明 +初次clone可使用以下命令。 +```bash +git clone https://xxxx/XXX-bundle.git +``` +在git clone之后执行 +```bash +git submodule update --init + +``` + +```bash +git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)' +``` + +更新所有子项目: +``` +git pull --rebase --recurse-submodules +``` + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..254e8d6 --- /dev/null +++ b/build.gradle @@ -0,0 +1,24 @@ +plugins { + id 'java' + id 'idea' +} +def currVersion = "0.1.0" +ext.projectIds = ['group': 'org.bdware.datanet.searchengine', 'version': currVersion] +sourceCompatibility = 1.8 + +tasks.withType(JavaCompile) { + options.compilerArgs << '-Xlint:none' + options.compilerArgs << '-Xlint:deprecation' << "-Werror" +} + +repositories { + mavenCentral() +} +project(':datanet-search-engine-backend') { + group = "org.bdware.datanet.searchengine" + version = projectIds.version + repositories { + maven { url 'https://maven.aliyun.com/repository/public' } + } +} + diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..c4764d6 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name = 'DatanetSearchEngineBundle' +include 'datanet-search-engine-backend'