diff --git a/README.MD b/README.MD index 6f8a7ed..26971e0 100644 --- a/README.MD +++ b/README.MD @@ -66,10 +66,12 @@ Compared to the original, it is not only more powerful but also supports cross-d ## 💻 开发 / Develop -### Maven 仓库配置 +### Maven 仓库配置 / Maven Repository Configuration 在您的 `build.gradle` 中添加以下仓库配置: +Add the following repository configuration in your build.gradle: + ```gradle repositories { maven { @@ -79,10 +81,12 @@ repositories { } ``` -### 依赖导入 +### 依赖导入 / Dependency Import 在 `dependencies` 区块中添加 Super Lead Rope 依赖: +Add Super Lead Rope dependency in the dependencies block: + ```gradle dependencies { compileOnly 'top.r3944realms.superleadrope:superleadrope:版本号:api@jar' @@ -90,20 +94,12 @@ dependencies { } ``` -#### 版本号示例: +#### 版本号示例 / Version Example ```groovy 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' ``` - -### 使用说明 - -1. **构建项目**:配置完成后即可从仓库中下载并使用本 Mod -2. **源代码文档**:在右侧窗口中点击"下载源代码"即可查看完整的 Javadoc 注解 -3. **API 参考**:详见源代码中的注解文档 - -### 快速开始 - +### 快速开始 / Quick Start ```groovy repositories { maven { diff --git a/build.gradle b/build.gradle index ae82f2a..2f8ce4c 100644 --- a/build.gradle +++ b/build.gradle @@ -486,30 +486,3 @@ idea { 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 - } -}