Skip to content

Commit

Permalink
mcl: release 2.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Apr 2, 2022
1 parent 64dc7ae commit 36c1c55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'org.itxtech'
version '2.0.0-beta.1'
version '2.0.0-beta.2'
description '模块化、轻量级且支持完全自定义的 mirai 加载器。'

repositories {
Expand All @@ -28,7 +28,7 @@ def getGitHash = { ->

task fatJar(type: Jar) {
from sourceSets.main.output
archiveFileName = "mcl-${project.version}-all.jar"
archiveFileName = "mcl.jar"

manifest {
attributes "Main-Class": "org.itxtech.mcl.Loader"
Expand Down Expand Up @@ -63,7 +63,7 @@ task launchTest(type: JavaExec) {
task zipAll(type: Zip) {
from fileTree(dir: ".", includes: ["README.md", "LICENSE", "mcl", "mcl.cmd"])
from("$buildDir/libs") {
include "mcl-${project.version}-all.jar"
include "mcl.jar"
rename { "mcl.jar" }
}
destinationDirectory = file("$buildDir/libs")
Expand Down
2 changes: 1 addition & 1 deletion docs/Plugin.md
Expand Up @@ -7,7 +7,7 @@
```groovy
dependencies {
//打包时排除mcl包,如果您的插件打包时不打包依赖,则可使用implementation
compileOnly("org.itxtech:mirai-console-loader:2.0.0")
compileOnly("org.itxtech:mcl:2.0.0")
}
```

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/itxtech/mcl/module/builtin/Updater.java
Expand Up @@ -45,8 +45,10 @@ public String getName() {

@Override
public void prepare() {
loader.options.addOption(Option.builder("u").desc("Update packages").longOpt("update").build());
loader.options.addOption(Option.builder("k").desc("Disable progress bar").longOpt("disable-progress-bar").build());
loader.options.addOption(Option.builder("u").desc("Update packages")
.longOpt("update").build());
loader.options.addOption(Option.builder("k").desc("Disable progress bar")
.longOpt("disable-progress-bar").build());
}

@Override
Expand Down

0 comments on commit 36c1c55

Please sign in to comment.