mirror of
https://github.com/fankes/maven-repository.git
synced 2025-09-04 09:45:18 +08:00
update
This commit is contained in:
58
README.md
58
README.md
@@ -53,6 +53,35 @@ repositories:
|
||||
url: https://raw.githubusercontent.com/fankes/maven-repository/main/repository/snapshots
|
||||
```
|
||||
|
||||
#### Introduce Sample Dependency
|
||||
|
||||
The notation of the example dependency is `com.fankes.maven-artifact-test:maven-artifact-test`.
|
||||
|
||||
It has 2 versions `1.0.0` and `1.0.0-SNAPSHOT`.
|
||||
|
||||
> Traditional Method
|
||||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation("com.fankes.maven-artifact-test:maven-artifact-test:1.0.0")
|
||||
}
|
||||
```
|
||||
|
||||
> SweetDependency Method
|
||||
|
||||
```yaml
|
||||
libraries:
|
||||
com.fankes.maven-artifact-test:
|
||||
maven-artifact-test:
|
||||
version: 1.0.0
|
||||
```
|
||||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation(com.fankes.maven.artifact.test.maven.artifact.test)
|
||||
}
|
||||
```
|
||||
|
||||
## 使用方法
|
||||
|
||||
目录 `repository` 即为存储库,其中包含了 `releases` (发行版) 和 `snapshots` (快照) 两部分,这里存放了所有 Maven 项目的工件。
|
||||
@@ -102,6 +131,35 @@ repositories:
|
||||
url: https://raw.githubusercontent.com/fankes/maven-repository/main/repository/snapshots
|
||||
```
|
||||
|
||||
#### 引入示例依赖
|
||||
|
||||
示例依赖的 Notation 为 `com.fankes.maven-artifact-test:maven-artifact-test`。
|
||||
|
||||
其有两个版本 `1.0.0` 和 `1.0.0-SNAPSHOT`。
|
||||
|
||||
> 传统方式
|
||||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation("com.fankes.maven-artifact-test:maven-artifact-test:1.0.0")
|
||||
}
|
||||
```
|
||||
|
||||
> SweetDependency 方式
|
||||
|
||||
```yaml
|
||||
libraries:
|
||||
com.fankes.maven-artifact-test:
|
||||
maven-artifact-test:
|
||||
version: 1.0.0
|
||||
```
|
||||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation(com.fankes.maven.artifact.test.maven.artifact.test)
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
- [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
Reference in New Issue
Block a user