This commit is contained in:
2023-09-08 15:12:22 +08:00
parent 129e2b270b
commit a9f5720159
66 changed files with 427 additions and 0 deletions

View File

@@ -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)