Skip to content

Commit

Permalink
updated for eld v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Oct 17, 2024
1 parent 908a917 commit 263634c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ env:
on:
push:
branches:
- develop
- '**'
- '!master'

jobs:
build_plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode clean package
- name: upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: plugin
path: ./ELDependenci-MVC-plugin/target
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v2
- uses: eric2788/maven-jar-publish@v2
with:
java-version: 18
java-version: 17
body: 版本更新請到[這裏](https://eric2788.gitbook.io/eldependenci-mvc/references/update)查看。
upload-module: './ELDependenci-MVC-plugin'
- name: 'Update javadocs'
Expand All @@ -36,17 +36,17 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-get-latest-tag@v1
id: latest-tag
- uses: jungwinter/split@v2
id: version
with:
msg: ${{ steps.latest-tag.outputs.tag }}
separator: '.'
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '17'
distribution: 'adopt'
- name: Publish package
run: mvn --batch-mode clean deploy
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
steps:
- name: Checkout Source Code
id: checkout-source
uses: actions/checkout@v2
- name: Set up JDK 18
uses: actions/checkout@v4
- name: Set up JDK
id: setup-java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 18
java-version: 17
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.ericlam.mc.eldgui.component.modifier.Disable;
import com.ericlam.mc.eldgui.component.modifier.Listenable;
import com.ericlam.mc.eldgui.view.*;
import org.apache.commons.lang.text.StrSubstitutor;
import org.apache.commons.lang3.text.StrSubstitutor;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.ericlam.mc.eldgui.component.modifier.Listenable;
import io.papermc.paper.event.player.AsyncChatEvent;
import net.kyori.adventure.text.TextComponent;
import org.apache.commons.lang.text.StrSubstitutor;
import org.apache.commons.lang3.text.StrSubstitutor;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.event.inventory.InventoryClickEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.ericlam.mc.eldgui.lifecycle.PreDestroy;
import com.ericlam.mc.eldgui.lifecycle.PreDestroyView;
import com.ericlam.mc.eldgui.view.View;
import org.apache.commons.lang.Validate;
import org.apache.commons.lang3.Validate;

import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.ericlam.mc.eldgui.UISession;
import com.ericlam.mc.eldgui.view.BukkitView;
import com.google.inject.Injector;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.bukkit.entity.Player;

import javax.annotation.Nullable;
Expand Down
14 changes: 6 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</modules>

<properties>
<maven.compiler.target>18</maven.compiler.target>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
</properties>

<repositories>
Expand Down Expand Up @@ -52,19 +52,19 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<version>1.20.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eldependenci</groupId>
<artifactId>eldependenci-bukkit</artifactId>
<version>2.0.1</version>
<version>2.0.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eldependenci</groupId>
<artifactId>eldependenci-addon</artifactId>
<version>2.0.1</version>
<version>2.0.3</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -138,8 +138,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>18</source>
<target>18</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
Expand Down Expand Up @@ -184,4 +182,4 @@
</repository>
</distributionManagement>

</project>
</project>

0 comments on commit 263634c

Please sign in to comment.