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:
18
README.md
18
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user