From b6a970b372981b3171c2b191a09b65c1b010c01a Mon Sep 17 00:00:00 2001 From: CarmJos Date: Sun, 12 Dec 2021 00:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 33 +++ .github/workflows/maven.yml | 38 +++ .gitignore | 4 + EasySQL-API/pom.xml | 68 ++++++ .../cc/carm/lib/easysql/api/SQLManager.java | 7 + EasySQL-Impl/pom.xml | 101 ++++++++ .../java/cc/carm/lib/easysql/EasySQL.java | 7 + README.md | 22 ++ pom.xml | 226 ++++++++++++++++++ 9 files changed, 506 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/maven.yml create mode 100644 .gitignore create mode 100644 EasySQL-API/pom.xml create mode 100644 EasySQL-API/src/main/java/cc/carm/lib/easysql/api/SQLManager.java create mode 100644 EasySQL-Impl/pom.xml create mode 100644 EasySQL-Impl/src/main/java/cc/carm/lib/easysql/EasySQL.java create mode 100644 README.md create mode 100644 pom.xml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..506585f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Deploy + +on: + # 支持手动触发构建 + workflow_dispatch: + release: + # 创建release的时候触发 + types: [ published ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: "Set up JDK" + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: maven + server-id: github + server-username: MAVEN_USERNAME + server-password: MAVEN_TOKEN + - name: "Deploy" + run: mvn -B deploy --file pom.xml -DskipTests + env: + MAVEN_USERNAME: ${{ github.repository_owner }} + MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..b7ae340 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,38 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Build + +on: + # 支持手动触发构建 + workflow_dispatch: + push: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: "Set up JDK" + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: maven + server-id: github + server-username: MAVEN_USERNAME + server-password: MAVEN_TOKEN + - name: "Package" + run: mvn -B package --file pom.xml + env: + MAVEN_USERNAME: ${{ github.repository_owner }} + MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: "Target Stage" + run: mkdir staging && cp target/*.jar staging + - name: "Upload artifact" + uses: actions/upload-artifact@v2 + with: + name: Artifact + path: staging \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18faac9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.idea/ +/target/ +/*/target/ +**.iml \ No newline at end of file diff --git a/EasySQL-API/pom.xml b/EasySQL-API/pom.xml new file mode 100644 index 0000000..5f97a6c --- /dev/null +++ b/EasySQL-API/pom.xml @@ -0,0 +1,68 @@ + + + + cc.carm.lib + easysql-parent + 1.0.0 + + 4.0.0 + + easysql-api + jar + + EasySQL-API + EasySQL的接口部分。用于打包到公共项目的API中,避免项目过大。 + https://github.com/CarmJos/${project.parent.name} + + + + CarmJos + Carm Jos + carm@carm.cc + https://www.carm.cc + + Main Developer + + + + + + 8 + 8 + UTF-8 + UTF-8 + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-jar-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.apache.maven.plugins + maven-shade-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + + \ No newline at end of file diff --git a/EasySQL-API/src/main/java/cc/carm/lib/easysql/api/SQLManager.java b/EasySQL-API/src/main/java/cc/carm/lib/easysql/api/SQLManager.java new file mode 100644 index 0000000..b9b71c8 --- /dev/null +++ b/EasySQL-API/src/main/java/cc/carm/lib/easysql/api/SQLManager.java @@ -0,0 +1,7 @@ +package cc.carm.lib.easysql.api; + +public interface SQLManager { + + + +} diff --git a/EasySQL-Impl/pom.xml b/EasySQL-Impl/pom.xml new file mode 100644 index 0000000..e712fcf --- /dev/null +++ b/EasySQL-Impl/pom.xml @@ -0,0 +1,101 @@ + + + + easysql-parent + cc.carm.lib + 1.0.0 + + 4.0.0 + + easysql-impl + jar + + EasySQL-Impl + EasySQL的实现部分。 + https://github.com/CarmJos/${project.parent.name} + + + + CarmJos + Carm Jos + carm@carm.cc + https://www.carm.cc + + Main Developer + + + + + + 8 + 8 + UTF-8 + UTF-8 + + + + + + ${project.groupId} + easysql-api + compile + + + + + com.alibaba + fastjson + 1.2.78 + compile + + + + net.sf.json-lib + json-lib + 2.4 + jdk15 + compile + + + + + com.github.chris2018998 + beecp + 3.3.0 + compile + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-jar-plugin + + + org.apache.maven.plugins + maven-source-plugin + + + org.apache.maven.plugins + maven-shade-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + \ No newline at end of file diff --git a/EasySQL-Impl/src/main/java/cc/carm/lib/easysql/EasySQL.java b/EasySQL-Impl/src/main/java/cc/carm/lib/easysql/EasySQL.java new file mode 100644 index 0000000..86323bf --- /dev/null +++ b/EasySQL-Impl/src/main/java/cc/carm/lib/easysql/EasySQL.java @@ -0,0 +1,7 @@ +package cc.carm.lib.easysql; + +public class EasySQL { + + + +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..527a8cb --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +```text + ______ _____ ____ __ + / ____/___ ________ __ / ___// __ \ / / + / __/ / __ `/ ___/ / / / \__ \/ / / / / / + / /___/ /_/ (__ ) /_/ / ___/ / /_/ / / /___ +/_____/\__,_/____/\__, / /____/\___\_\/_____/ + /____/ +``` + +# EasySQL + +简单便捷的数据库操作工具,采用 [BeeCP](https://github.com/Chris2018998/BeeCP) 连接池。 + +## 开发 + +## 支持与捐赠 + +若您觉得本插件做的不错,您可以通过捐赠支持我! + +感谢您对开源项目的支持! + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b156628 --- /dev/null +++ b/pom.xml @@ -0,0 +1,226 @@ + + + 4.0.0 + + cc.carm.lib + easysql-parent + pom + 1.0.0 + + + easysql-api + easysql-impl + + + EasySQL + 简单便捷的数据库操作工具,采用 BeeCP 连接池。 + https://github.com/CarmJos/${name} + + + + CarmJos + Carm Jos + carm@carm.cc + https://www.carm.cc + + Main Developer + + + + + + GitHub Issues + ${project.url}/issues + + + + GitHub Actions + ${project.url}/actions/workflows/maven.yml + + + + 8 + 8 + UTF-8 + UTF-8 + + + + + + carm-repo + Carm's Repo + https://repo.carm.cc/repository/maven-public/ + + + + nexus + https://mvn.lumine.io/repository/maven-public/ + + + + central + https://repo1.maven.org/maven2/ + + + + github + GitHub Packages + https://maven.pkg.github.com/CarmJos/${project.name} + + + + + + + ${project.url}/releases + + + github + GitHub Packages + https://maven.pkg.github.com/CarmJos/${project.name} + + + + + + + + junit + junit + 4.13.2 + test + + + + org.jetbrains + annotations + 22.0.0 + provided + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 + + false + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + javadoc + + https://javadoc.io/doc/org.jetbrains/annotations/ + + true + + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + UTF-8 + -parameters + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.0 + + + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.3 + + + package + + shade + + + false + + + + + + + *:* + + META-INF/MANIFEST.MF + META-INF/*.txt + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 + + false + + + + + + + + + src/main/resources + true + + + + + + + \ No newline at end of file