feat: update to 0.9.1

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-08-27 17:30:59 +08:00
parent e71bd2a0cb
commit 427aa262f0
4 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>MiaoScript</artifactId>
<version>0.7.5</version>
<version>0.9.1</version>
<developers>
<developer>
<id>502647092</id>
@ -53,6 +53,8 @@
<properties>
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
<update.changes>
§620-08-27 §afeat: 新增ProtocolLib依赖;
§620-07-28 §afeat: 新增框架升级功能;
§620-06-23 §afeat: 支持自定义参数;
§620-06-22 §afeat: 优化 require 加载逻辑;
§620-05-28 §afeat: 新增 Spring 的支持;

View File

@ -6,8 +6,6 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.stream.Collectors;
import lombok.val;
/**
* Created with IntelliJ IDEA
*
@ -48,7 +46,7 @@ public class Base {
}
public void delete(Path path) throws IOException {
val file = path.toFile();
File file = path.toFile();
if (!file.exists()) { return; }
if (file.isDirectory()) {
for (Path f : Files.list(file.toPath()).collect(Collectors.toList())) {

View File

@ -22,6 +22,11 @@ var global = this;
global.level = base.read(java.nio.file.Paths.get(root, "level"))
logger.info('Set system level to [' + global.level + ']...');
}
if (java.nio.file.Files.exists(java.nio.file.Paths.get(root, "upgrade"))) {
logger.info('Found upgrade file starting upgrade...');
base.delete(java.nio.file.Paths.get(root, "node_modules"))
base.delete(java.nio.file.Paths.get(root, "upgrade"))
}
// Check Class Loader, Sometimes Server will can't found plugin.yml file
loader = checkClassLoader();
// Async Loading MiaoScript Engine

View File

@ -8,4 +8,5 @@ website: ${ciManagement.url}
load: STARTUP
softdepend:
- PlaceholderAPI
- ProtocolLib
- Vault