1
mirror of https://github.com/CarmJos/UltraDepository.git synced 2024-09-19 11:45:47 +00:00

添加依赖方式介绍

This commit is contained in:
Carm Jos 2022-01-05 05:11:25 +08:00
parent d0361c260d
commit 62c8350b8b

View File

@ -11,10 +11,6 @@
# UltraDepository 帮助介绍文档
## [开发文档](JAVADOC-README.md)
基于 [Github Pages](https://pages.github.com/) 搭建,请访问 [JavaDoc](https://carmjos.github.io/UltraDepository) 。
## 插件介绍目录
- 使用示例
@ -24,4 +20,63 @@
- [JSON格式](../.examples/userdata/uuid.json)
- [MySQL格式](../.examples/userdata/database.sql)
- [开发](develop)
- [自定义存储源](develop/use-custome-storage.md)
- [自定义存储源](develop/use-custome-storage.md)
## [开发文档](JAVADOC-README.md)
基于 [Github Pages](https://pages.github.com/) 搭建,请访问 [JavaDoc](https://carmjos.github.io/UltraDepository) 。
## 依赖方式
### Maven 依赖
```xml
<project>
<repositories>
<repository>
<!--采用github依赖库安全稳定但需要配置 (推荐)-->
<id>UltraDepository</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/CarmJos/UltraDepository</url>
</repository>
<repository>
<!--采用我的私人依赖库,简单方便,但可能因为变故而无法使用-->
<id>carm-repo</id>
<name>Carm's Repo</name>
<url>https://repo.carm.cc/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>cc.carm.plugin</groupId>
<artifactId>ultradepository</artifactId>
<version>[LATEST RELEASE]</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
```
### Gradle 依赖
```groovy
repositories {
// 采用github依赖库安全稳定但需要配置 (推荐)
maven { url 'https://maven.pkg.github.com/CarmJos/EasyPlugin' }
// 采用我的私人依赖库,简单方便,但可能因为变故而无法使用
maven { url 'https://repo.carm.cc/repository/maven-public/' }
}
dependencies {
compileOnly "cc.carm.plugin:ultradepository:[LATEST RELEASE]"
}
```