9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

Publish API

This commit is contained in:
Dreeam
2024-07-17 01:30:22 +08:00
parent 6f90851f57
commit 0bae9452af
3 changed files with 31 additions and 13 deletions

View File

@@ -47,10 +47,16 @@ Building a Paperclip JAR for distribution:
./gradlew applyPatches && ./gradlew createMojmapPaperclipJar
```
## 🧪 API (WIP)
## 🧪 API
### Maven
```xml
<repository>
<id>leafmc</id>
<url>https://maven.nostal.ink/repository/maven-snapshots/</url>
</repository>
```
```xml
<dependency>
<groupId>cn.dreeam.leaf</groupId>
<artifactId>leaf-api</artifactId>
@@ -60,9 +66,19 @@ Building a Paperclip JAR for distribution:
```
### Gradle
```kotlin
repositories {
maven {
url = uri("https://maven.nostal.ink/repository/maven-snapshots/")
}
}
dependencies {
compileOnly("cn.dreeam.leaf:leaf-api:1.21-R0.1-SNAPSHOT")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
```
## ⚖️ License