1
mirror of https://github.com/CarmJos/EasySQL.git synced 2026-06-14 03:15:55 +08:00

Compare commits

..

4 Commits

Author SHA1 Message Date
carm 50b36d8430 [v0.2.5] 打包时不再对slf4j-api进行relocation 2022-01-06 14:39:28 +08:00
carm cd60bf256e 添加依赖地址 2022-01-05 05:09:49 +08:00
carm ebe68befee 添加依赖地址 2022-01-05 04:59:02 +08:00
carm 594413e13b 添加依赖地址 2022-01-05 04:56:57 +08:00
7 changed files with 78 additions and 19 deletions
+71 -4
View File
@@ -39,17 +39,29 @@
### 依赖方式 ### 依赖方式
#### Maven 依赖
<details> <details>
<summary>远程库配置(Maven)</summary> <summary>远程库配置</summary>
```xml ```xml
<project> <project>
<repositories> <repositories>
<repository> <repository>
<id>github</id> <!--采用github依赖库,安全稳定,但需要配置 (推荐)-->
<id>EasySQL</id>
<name>GitHub Packages</name> <name>GitHub Packages</name>
<url>https://maven.pkg.github.com/CarmJos/EasySQL</url> <url>https://maven.pkg.github.com/CarmJos/EasySQL</url>
</repository> </repository>
<repository>
<!--采用我的私人依赖库,简单方便,但可能因为变故而无法使用-->
<id>carm-repo</id>
<name>Carm's Repo</name>
<url>https://repo.carm.cc/repository/maven-public/</url>
</repository>
</repositories> </repositories>
</project> </project>
``` ```
@@ -57,9 +69,10 @@
</details> </details>
<details> <details>
<summary>原生依赖(Maven)</summary> <summary>原生依赖</summary>
```xml ```xml
<project> <project>
<dependencies> <dependencies>
<!--对于需要提供公共接口的项目,可以仅打包API部分,方便他人调用--> <!--对于需要提供公共接口的项目,可以仅打包API部分,方便他人调用-->
@@ -81,12 +94,14 @@
</dependencies> </dependencies>
</project> </project>
``` ```
</details> </details>
<details> <details>
<summary>含连接池版本(Maven)</summary> <summary>含连接池版本</summary>
```xml ```xml
<project> <project>
<dependencies> <dependencies>
<!--也可直接选择打包了连接池的版本--> <!--也可直接选择打包了连接池的版本-->
@@ -108,6 +123,58 @@
</details> </details>
#### Gradle 依赖
<details>
<summary>远程库配置</summary>
```groovy
repositories {
// 采用github依赖库,安全稳定,但需要配置 (推荐)
maven { url 'https://maven.pkg.github.com/CarmJos/EasySQL' }
// 采用我的私人依赖库,简单方便,但可能因为变故而无法使用
maven { url 'https://repo.carm.cc/repository/maven-public/' }
}
```
</details>
<details>
<summary>原生依赖</summary>
```groovy
dependencies {
//对于需要提供公共接口的项目,可以仅打包API部分,方便他人调用
api "cc.carm.lib:easysql-api:[LATEST RELEASE]"
//如需自定义连接池,则可以仅打包实现部分,自行创建SQLManager
api "cc.carm.lib:easysql-impl:[LATEST RELEASE]"
}
```
</details>
<details>
<summary>含连接池版本</summary>
```groovy
dependencies {
//也可直接选择打包了连接池的版本
api "cc.carm.lib:easysql-beecp:[LATEST RELEASE]"
api "cc.carm.lib:easysql-hikaricp:[LATEST RELEASE]"
}
```
</details>
## 支持与捐赠 ## 支持与捐赠
若您觉得本插件做的不错,您可以通过捐赠支持我! 若您觉得本插件做的不错,您可以通过捐赠支持我!
+1 -1
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<version>0.2.4</version> <version>0.2.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
+1 -5
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<version>0.2.4</version> <version>0.2.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@@ -101,10 +101,6 @@
</executions> </executions>
<configuration> <configuration>
<relocations> <relocations>
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>cc.carm.lib.easysql.slf4j</shadedPattern>
</relocation>
<relocation> <relocation>
<pattern>cn.beecp</pattern> <pattern>cn.beecp</pattern>
<shadedPattern>cc.carm.lib.easysql.beecp</shadedPattern> <shadedPattern>cc.carm.lib.easysql.beecp</shadedPattern>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<version>0.2.4</version> <version>0.2.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
+1 -5
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<version>0.2.4</version> <version>0.2.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@@ -100,10 +100,6 @@
</executions> </executions>
<configuration> <configuration>
<relocations> <relocations>
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>cc.carm.lib.easysql.slf4j</shadedPattern>
</relocation>
<relocation> <relocation>
<pattern>com.zaxxer.hikari</pattern> <pattern>com.zaxxer.hikari</pattern>
<shadedPattern>cc.carm.lib.easysql.hikari</shadedPattern> <shadedPattern>cc.carm.lib.easysql.hikari</shadedPattern>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<version>0.2.4</version> <version>0.2.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -16,7 +16,7 @@
<groupId>cc.carm.lib</groupId> <groupId>cc.carm.lib</groupId>
<artifactId>easysql-parent</artifactId> <artifactId>easysql-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.2.4</version> <version>0.2.5</version>
<modules> <modules>
<module>easysql-api</module> <module>easysql-api</module>