修正
This commit is contained in:
parent
c3fe7fbe6a
commit
f23c095f76
20
README.MD
20
README.MD
|
|
@ -66,10 +66,12 @@ Compared to the original, it is not only more powerful but also supports cross-d
|
||||||
|
|
||||||
## 💻 开发 / Develop
|
## 💻 开发 / Develop
|
||||||
|
|
||||||
### Maven 仓库配置
|
### Maven 仓库配置 / Maven Repository Configuration
|
||||||
|
|
||||||
在您的 `build.gradle` 中添加以下仓库配置:
|
在您的 `build.gradle` 中添加以下仓库配置:
|
||||||
|
|
||||||
|
Add the following repository configuration in your build.gradle:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
|
@ -79,10 +81,12 @@ repositories {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 依赖导入
|
### 依赖导入 / Dependency Import
|
||||||
|
|
||||||
在 `dependencies` 区块中添加 Super Lead Rope 依赖:
|
在 `dependencies` 区块中添加 Super Lead Rope 依赖:
|
||||||
|
|
||||||
|
Add Super Lead Rope dependency in the dependencies block:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'top.r3944realms.superleadrope:superleadrope:版本号:api@jar'
|
compileOnly 'top.r3944realms.superleadrope:superleadrope:版本号:api@jar'
|
||||||
|
|
@ -90,20 +94,12 @@ dependencies {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 版本号示例:
|
#### 版本号示例 / Version Example
|
||||||
```groovy
|
```groovy
|
||||||
compileOnly 'top.r3944realms.superleadrope:superleadrope:1.20.1-0.0.0.7:api@jar'
|
compileOnly 'top.r3944realms.superleadrope:superleadrope:1.20.1-0.0.0.7:api@jar'
|
||||||
runtimeOnly 'top.r3944realms.superleadrope:superleadrope:1.20.1-0.0.0.7'
|
runtimeOnly 'top.r3944realms.superleadrope:superleadrope:1.20.1-0.0.0.7'
|
||||||
```
|
```
|
||||||
|
### 快速开始 / Quick Start
|
||||||
### 使用说明
|
|
||||||
|
|
||||||
1. **构建项目**:配置完成后即可从仓库中下载并使用本 Mod
|
|
||||||
2. **源代码文档**:在右侧窗口中点击"下载源代码"即可查看完整的 Javadoc 注解
|
|
||||||
3. **API 参考**:详见源代码中的注解文档
|
|
||||||
|
|
||||||
### 快速开始
|
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
|
|
||||||
27
build.gradle
27
build.gradle
|
|
@ -486,30 +486,3 @@ idea {
|
||||||
downloadJavadoc = true
|
downloadJavadoc = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
afterEvaluate {
|
|
||||||
// 创建清理任务
|
|
||||||
tasks.register('cleanGeneratedJars') {
|
|
||||||
doLast {
|
|
||||||
def jars = [
|
|
||||||
file("build/libs/${mod_id}-${minecraft_version}-${mod_version}.jar"),
|
|
||||||
file("build/libs/${mod_id}-${minecraft_version}-${mod_version}-api.jar")
|
|
||||||
]
|
|
||||||
jars.each { jar ->
|
|
||||||
if (jar.exists()) {
|
|
||||||
println "Deleting: ${jar.name}"
|
|
||||||
jar.delete()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 在 public 任务后执行清理
|
|
||||||
tasks.named('publish') {
|
|
||||||
finalizedBy cleanGeneratedJars
|
|
||||||
}
|
|
||||||
|
|
||||||
// 或者如果还有其他发布任务
|
|
||||||
tasks.named('publishToMavenLocal') {
|
|
||||||
finalizedBy cleanGeneratedJars
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user