diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index f49b6dbc..790109b5 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -14,8 +14,8 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 - - name: Refactor Version - run: sed -i "s/pjversion/1.1-pre3/g" `grep 1.1-pre3 -rl /home/runner/work/CatSero/CatSero` + #- name: Refactor Version + # run: sed -i "s/pjversion/1.1-pre3/g" `grep 1.1-pre3 -rl /home/runner/work/CatSero/CatSero` - name: Set up JDK 8 uses: actions/setup-java@v2 diff --git a/pom.xml b/pom.xml index 0fcbd48b..fbd4fb41 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ moe.xmcn.catsero CatSero - pjversion + 1.1 UTF-8 @@ -21,21 +21,17 @@ lss233-minecraft https://lss233.littleservice.cn/repositories/minecraft - + offical-maven-repo https://repo1.maven.org/maven2 - - - mvn-repository - https://maven.nuxeo.org/nexus/content/groups/public - spigot-repo @@ -140,7 +136,7 @@ org.jetbrains.kotlin - kotlin-test + kotlin-test-junit ${kotlin.version} test diff --git a/src/main/java/moe/xmcn/catsero/Updater.java b/src/main/java/moe/xmcn/catsero/Updater.java index 74b42137..298aa041 100644 --- a/src/main/java/moe/xmcn/catsero/Updater.java +++ b/src/main/java/moe/xmcn/catsero/Updater.java @@ -22,7 +22,7 @@ public Updater(String name, String durl, String devname, String devdurl) { } public static void onEnable() { - String nowversion = "pjversion"; + String nowversion = "${project.version}"; Plugin plugin = moe.xmcn.catsero.Main.getPlugin(moe.xmcn.catsero.Main.class); if (plugin.getConfig().getBoolean("check-update.enabled")) { String datajson = HttpUtils.sendGet("https://csu.huahuo-cn.tk/api/updt.php", "UTF-8"); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 556e9276..d6dd9752 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: CatSero main: moe.xmcn.catsero.Main -version: pjversion +version: ${project.version} api-version: 1.13 author: XiaMoHuaHuo_CN depend: