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 @@ Configure dependency in your project `build.gradle.kts`.
implementation(com.highcapable.hikage.hikage.extension)
```
### Version Catalog
Add dependency in your project's `gradle/libs.versions.toml`.
```toml
[versions]
hikage-extension = "<version>"
[libraries]
hikage-extension = { module = "com.highcapable.hikage:hikage-extension", version.ref = "hikage-extension" }
```
Configure dependency in your project `build.gradle.kts`.
```kotlin
implementation(libs.hikage.extension)
```
Please change `<version>` to the version displayed at the top of this document.
### Traditional Method
Configure dependency in your project `build.gradle.kts`.