Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
emmm。。。不懂Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaMoHuaHuo-CN committed May 14, 2022
1 parent e81b00c commit d62e221
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 4 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>moe.xmcn.catsero</groupId>
<artifactId>CatSero</artifactId>
<version>pjversion</version>
<version>1.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -21,21 +21,17 @@
<id>lss233-minecraft</id>
<url>https://lss233.littleservice.cn/repositories/minecraft</url>
</repository>
<!-- PlaceholderAPI Repo -->
<!-- PlaceholderAPI Repo
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
-->
<!-- Offical Maven Repo -->
<repository>
<id>offical-maven-repo</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<!-- Mvn Maven Repo -->
<repository>
<id>mvn-repository</id>
<url>https://maven.nuxeo.org/nexus/content/groups/public</url>
</repository>
<!-- Spigot Maven Repo -->
<repository>
<id>spigot-repo</id>
Expand Down Expand Up @@ -140,7 +136,7 @@
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/moe/xmcn/catsero/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CatSero
main: moe.xmcn.catsero.Main
version: pjversion
version: ${project.version}
api-version: 1.13
author: XiaMoHuaHuo_CN
depend:
Expand Down

0 comments on commit d62e221

Please sign in to comment.