docs: add version catalog tutorial

This commit is contained in:
2025-06-05 19:16:50 +08:00
parent 4511ec329f
commit 67e81b736b
14 changed files with 323 additions and 0 deletions

View File

@@ -29,6 +29,26 @@ libraries:
implementation(com.highcapable.hikage.hikage.extension)
```
### Version Catalog
在你的项目 `gradle/libs.versions.toml` 中添加依赖。
```toml
[versions]
hikage-extension = "<version>"
[libraries]
hikage-extension = { module = "com.highcapable.hikage:hikage-extension", version.ref = "hikage-extension" }
```
在你的项目 `build.gradle.kts` 中配置依赖。
```kotlin
implementation(libs.hikage.extension)
```
请将 `<version>` 修改为此文档顶部显示的版本。
### 传统方式
在你的项目 `build.gradle.kts` 中配置依赖。