From 22c00783d6003c475a14c12b5620f191aff64e57 Mon Sep 17 00:00:00 2001 From: srbedrock <51332006+SrBedrock@users.noreply.github.com> Date: Tue, 18 Aug 2020 20:42:32 -0300 Subject: [PATCH 1/4] Add api-version Remove warning: `[20:40:14 WARN]: Legacy plugin TitansBattle v3.0.6 does not specify an api-version.` --- src/main/resources/plugin.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 88119e6f..27b2525f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -2,6 +2,7 @@ main: "me.roinujnosde.titansbattle.TitansBattle" name: "TitansBattle" author: "RoinujNosde" version: ${project.version} +api-version: "1.13" softdepend: - "SimpleClans" - "Factions" @@ -52,4 +53,4 @@ permissions: titansbattle.setinventory: default: false titansbattle.ranking: - default: false \ No newline at end of file + default: false From 22406a8f42304ea2060628145347f43a7750c869 Mon Sep 17 00:00:00 2001 From: Edson Passos Date: Tue, 8 Dec 2020 19:43:14 -0300 Subject: [PATCH 2/4] Update publish-bintray.yml --- .github/workflows/publish-bintray.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-bintray.yml b/.github/workflows/publish-bintray.yml index 1df2bf6b..f438014b 100644 --- a/.github/workflows/publish-bintray.yml +++ b/.github/workflows/publish-bintray.yml @@ -18,7 +18,11 @@ jobs: server-id: bintray-roinujnosde-bukkit-plugins # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - + - name: Install MassiveCore + run: mvn install:install-file "-Dfile=./repo/com/MassiveCraft/MassiveCore/2.14.0/MassiveCore-2.14.0.jar" "-DgroupId=com.MassiveCraft.MassiveCore" "-DartifactId=MassiveCore" "-Dversion=2.14.0" "-Dpackaging=jar" "-DgeneratePom=true" + - name: Install Factions + run: mvn install:install-file "-Dfile=./repo/com/MassiveCraft/Factions/2.14.0/Factions-2.14.0.jar" "-DgroupId=com.MassiveCraft.Factions" "-DartifactId=Factions" "-Dversion=2.14.0" "-Dpackaging=jar" "-DgeneratePom=true" + - name: Build with Maven run: mvn -B package --file pom.xml From fad5bcb5450fe29266059c0232bcd3b57f56edc2 Mon Sep 17 00:00:00 2001 From: Edson Passos Date: Tue, 8 Dec 2020 19:50:45 -0300 Subject: [PATCH 3/4] Add dev build action --- .github/workflows/dev_build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dev_build.yml diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml new file mode 100644 index 00000000..b25d2eec --- /dev/null +++ b/.github/workflows/dev_build.yml @@ -0,0 +1,31 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Dev Build + +on: push + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Install MassiveCore + run: mvn install:install-file "-Dfile=./repo/com/MassiveCraft/MassiveCore/2.14.0/MassiveCore-2.14.0.jar" "-DgroupId=com.MassiveCraft.MassiveCore" "-DartifactId=MassiveCore" "-Dversion=2.14.0" "-Dpackaging=jar" "-DgeneratePom=true" + - name: Install Factions + run: mvn install:install-file "-Dfile=./repo/com/MassiveCraft/Factions/2.14.0/Factions-2.14.0.jar" "-DgroupId=com.MassiveCraft.Factions" "-DartifactId=Factions" "-Dversion=2.14.0" "-Dpackaging=jar" "-DgeneratePom=true" + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Create Staging + run: mkdir staging && cp target/TitansBattle.jar staging + - name: Upload a Build Artifact + uses: actions/upload-artifact@v2 + with: + name: TitansBattle + path: staging From abc21cdf00f49974d09e92b9e0fc91bc94a66585 Mon Sep 17 00:00:00 2001 From: Edson Passos Date: Tue, 8 Dec 2020 20:00:10 -0300 Subject: [PATCH 4/4] Fixed output jar name --- .github/workflows/dev_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml index b25d2eec..b5541a73 100644 --- a/.github/workflows/dev_build.yml +++ b/.github/workflows/dev_build.yml @@ -23,7 +23,7 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml - name: Create Staging - run: mkdir staging && cp target/TitansBattle.jar staging + run: mkdir staging && cp target/TitansBattle*.jar staging - name: Upload a Build Artifact uses: actions/upload-artifact@v2 with: