From 436c718c4848c959edba325ae4f1b85ecd48ef47 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 00:28:25 +0100
Subject: [PATCH 01/14] automate code scanning + potential building
---
.github/workflows/codeql-analysis.yml | 71 +++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 .github/workflows/codeql-analysis.yml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..769a547
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,71 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [ master ]
+ schedule:
+ - cron: '41 17 * * 6'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'java' ]
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
+ # Learn more:
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v1
+
+ # âšī¸ Command-line programs to run using the OS shell.
+ # đ https://git.io/JvXDl
+
+ # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
+ # and modify them (or add more) to build your code if your project
+ # uses a compiled language
+
+ #- run: |
+ # make bootstrap
+ # make release
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1
From 0c40291252c7abd4303b7efbe2fee64424e59659 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 00:39:35 +0100
Subject: [PATCH 02/14] clean up pom
---
pom.xml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6f00317..b41d23f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
net.nuggetmc
TerminatorPlus
3.1-BETA
@@ -62,12 +61,20 @@
+
+
+ spigot-repo
+ https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
+
+
org.spigotmc
spigot
1.16.4-R0.1-SNAPSHOT
+ provided
-
\ No newline at end of file
+
From 3a4daec2ea20b7697638b9868cf7674624353727 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 00:45:07 +0100
Subject: [PATCH 03/14] oop
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index b41d23f..ca41839 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,8 +71,8 @@
org.spigotmc
- spigot
- 1.16.4-R0.1-SNAPSHOT
+ spigot-api
+ 1.16.5-R0.1-SNAPSHOT
provided
From 9c69965ee7f52cc0b9655b3d9eca552419c3efba Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 01:05:07 +0100
Subject: [PATCH 04/14] Create build.yml
---
.github/workflows/build.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 .github/workflows/build.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..9a536b1
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,27 @@
+# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
+# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
+
+name: Build TerminatorPlus
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 16
+ uses: actions/setup-java@v2
+ with:
+ java-version: '16'
+ distribution: 'adopt'
+ server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
From a249f53d6a243e845a6372c0da6a4421bce93214 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 01:46:23 +0100
Subject: [PATCH 05/14] now we talkin
---
pom.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ca41839..c6fa560 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,12 +66,16 @@
spigot-repo
https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
+ dre-repo
+ http://erethon.de/repo/
+
org.spigotmc
- spigot-api
+ spigot
1.16.5-R0.1-SNAPSHOT
provided
From dfd2c7f2950cb30752e6b73404d392591eb4b58b Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 01:48:57 +0100
Subject: [PATCH 06/14] switch to https
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c6fa560..d9b22b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,7 +68,7 @@
dre-repo
- http://erethon.de/repo/
+ https://erethon.de/repo/
From 2e56f9b7fc25cf2bdbf67cf08c77a1435d2ba5a1 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 01:53:49 +0100
Subject: [PATCH 07/14] remove legacy workflow
---
.github/workflows/build.yml | 27 ---------------------------
1 file changed, 27 deletions(-)
delete mode 100644 .github/workflows/build.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index 9a536b1..0000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
-# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
-
-name: Build TerminatorPlus
-
-on: [push, pull_request]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
- permissions:
- contents: read
- packages: write
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 16
- uses: actions/setup-java@v2
- with:
- java-version: '16'
- distribution: 'adopt'
- server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
- settings-path: ${{ github.workspace }} # location for the settings.xml file
-
- - name: Build with Maven
- run: mvn -B package --file pom.xml
From 1ec1c026ff5ab8a7107fc2494d81a602ee00ce80 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 02:10:23 +0100
Subject: [PATCH 08/14] small changes
---
pom.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index d9b22b1..4c201f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,6 +17,7 @@
org.apache.maven.plugins
maven-compiler-plugin
+ 3.8.1
8
8
@@ -25,7 +26,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.2.1
+ 3.2.4
package
@@ -48,9 +49,6 @@
org.apache.maven.plugins
maven-jar-plugin
2.3.1
-
- D:\Minecraft Server\plugins
-
@@ -62,10 +60,12 @@
+
spigot-repo
https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
dre-repo
https://erethon.de/repo/
@@ -73,6 +73,7 @@
+
org.spigotmc
spigot
@@ -80,5 +81,4 @@
provided
-
From 960b8999be8c3e9a7bddc56d5175d8ca0655a43f Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 02:20:48 +0100
Subject: [PATCH 09/14] Autopost artifacts
---
.github/workflows/codeql-analysis.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 769a547..efea012 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -69,3 +69,6 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
+
+ - name: Upload a Build Artifact
+ uses: actions/upload-artifact@v2.2.4
From dc08361c72decd23abd9ec48df582534a60c6815 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 02:28:50 +0100
Subject: [PATCH 10/14] add path
---
.github/workflows/codeql-analysis.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index efea012..f41c585 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -72,3 +72,6 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
+ run: mkdir -p target/
+ with:
+ path: target/
From 48df6280f257d7566588c140b6d7bad7cfcf73c4 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 02:32:01 +0100
Subject: [PATCH 11/14] move run to checkout step
---
.github/workflows/codeql-analysis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index f41c585..6e1eb6f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -40,6 +40,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
+ run: mkdir -p target/
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
@@ -72,6 +73,5 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
- run: mkdir -p target/
with:
path: target/
From f833a0d8909bfa595687a7f52f4ed9c7f31669c3 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 02:35:20 +0100
Subject: [PATCH 12/14] oops
---
.github/workflows/codeql-analysis.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 6e1eb6f..7c5b787 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -40,6 +40,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
+
+ - name: Create directory
run: mkdir -p target/
# Initializes the CodeQL tools for scanning.
From 94d3decf5b77964c2e9aa611f6a6abbf0823675c Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 10:39:29 +0100
Subject: [PATCH 13/14] update++
---
.github/workflows/codeql-analysis.yml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 7c5b787..f326ff8 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -41,9 +41,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- - name: Create directory
- run: mkdir -p target/
-
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
@@ -75,5 +72,7 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
+ if: success()
with:
+ name: TerminatorPlus
path: target/
From d7a46b306057041f7a4d61ff94f407c4dab27636 Mon Sep 17 00:00:00 2001
From: Legit4K <44619264+Legit4K@users.noreply.github.com>
Date: Tue, 31 Aug 2021 11:00:00 +0100
Subject: [PATCH 14/14] finalize git devflow
---
.github/workflows/codeql-analysis.yml | 78 ---------------------------
.github/workflows/dev-analysis.yml | 51 ++++++++++++++++++
2 files changed, 51 insertions(+), 78 deletions(-)
delete mode 100644 .github/workflows/codeql-analysis.yml
create mode 100644 .github/workflows/dev-analysis.yml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
deleted file mode 100644
index f326ff8..0000000
--- a/.github/workflows/codeql-analysis.yml
+++ /dev/null
@@ -1,78 +0,0 @@
-# For most projects, this workflow file will not need changing; you simply need
-# to commit it to your repository.
-#
-# You may wish to alter this file to override the set of languages analyzed,
-# or to provide custom queries or build logic.
-#
-# ******** NOTE ********
-# We have attempted to detect the languages in your repository. Please check
-# the `language` matrix defined below to confirm you have the correct set of
-# supported CodeQL languages.
-#
-name: "CodeQL"
-
-on:
- push:
- branches: [ master ]
- pull_request:
- # The branches below must be a subset of the branches above
- branches: [ master ]
- schedule:
- - cron: '41 17 * * 6'
-
-jobs:
- analyze:
- name: Analyze
- runs-on: ubuntu-latest
- permissions:
- actions: read
- contents: read
- security-events: write
-
- strategy:
- fail-fast: false
- matrix:
- language: [ 'java' ]
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
- # Learn more:
- # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- # Initializes the CodeQL tools for scanning.
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v1
- with:
- languages: ${{ matrix.language }}
- # If you wish to specify custom queries, you can do so here or in a config file.
- # By default, queries listed here will override any specified in a config file.
- # Prefix the list here with "+" to use these queries and those in the config file.
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
-
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- # If this step fails, then you should remove it and run the build manually (see below)
- - name: Autobuild
- uses: github/codeql-action/autobuild@v1
-
- # âšī¸ Command-line programs to run using the OS shell.
- # đ https://git.io/JvXDl
-
- # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
- # and modify them (or add more) to build your code if your project
- # uses a compiled language
-
- #- run: |
- # make bootstrap
- # make release
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
-
- - name: Upload a Build Artifact
- uses: actions/upload-artifact@v2.2.4
- if: success()
- with:
- name: TerminatorPlus
- path: target/
diff --git a/.github/workflows/dev-analysis.yml b/.github/workflows/dev-analysis.yml
new file mode 100644
index 0000000..b718f63
--- /dev/null
+++ b/.github/workflows/dev-analysis.yml
@@ -0,0 +1,51 @@
+name: "CodeQL"
+
+on: [push, pull_request]
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'java' ]
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
+ # Learn more:
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Cache local repo
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: ${{ matrix.language }}
+
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v1
+
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1
+
+ - name: Upload a Build Artifact
+ uses: actions/upload-artifact@v2.2.4
+ if: success()
+ with:
+ name: TerminatorPlus
+ path: target/