Reformat work and build files

This commit is contained in:
games647
2022-08-12 09:09:13 +02:00
parent 6fe7eb2c24
commit 520bb0d761
10 changed files with 93 additions and 84 deletions

View File

@ -1,6 +1,6 @@
name: 🐞 Bug Report name: 🐞 Bug Report
description: Something isn't working, broken, not expected behavior description: Something isn't working, broken, not expected behavior
labels: [bug] labels: [ bug ]
body: body:
- type: markdown - type: markdown
attributes: attributes:

View File

@ -8,18 +8,23 @@ assignees: ''
--- ---
[//]: # (Lines in this format are considered as comments and will not be displayed.) [//]: # (Lines in this format are considered as comments and will not be displayed.)
[//]: # (Before reporting make sure you're running the **latest build** of the plugin and checked for existing issues!) [//]: # (Before reporting make sure you're running the **latest build** of the plugin and checked for existing issues!)
[//]: # (This ticket is about suggestions for a feature or particular enhancement) [//]: # (This ticket is about suggestions for a feature or particular enhancement)
### Is your feature request related to a problem? Please describe. ### Is your feature request related to a problem? Please describe.
[//]: # (A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]) [//]: # (A clear and concise description of what the problem is. Ex. I'm always frustrated when [...])
### Describe the solution you'd like ### Describe the solution you'd like
[//]: # (A clear and concise description of what you want to happen.) [//]: # (A clear and concise description of what you want to happen.)
### Describe alternatives you've considered ### Describe alternatives you've considered
[//]: # (A clear and concise description of any alternative solutions or features you've considered.) [//]: # (A clear and concise description of any alternative solutions or features you've considered.)
### Additional context ### Additional context
[//]: # (Add any other context or screenshots about the feature request here.) [//]: # (Add any other context or screenshots about the feature request here.)

View File

@ -1,8 +1,11 @@
[//]: # (Lines in this format are considered as comments and will not be displayed.) [//]: # (Lines in this format are considered as comments and will not be displayed.)
[//]: # (If your work is in progress, please consider making a draft pull request.) [//]: # (If your work is in progress, please consider making a draft pull request.)
### Summary of your change ### Summary of your change
[//]: # (Example: motivation, enhancement) [//]: # (Example: motivation, enhancement)
### Related issue ### Related issue
[//]: # (Reference it using '#NUMBER'. Ex: Fixes/Related #...) [//]: # (Reference it using '#NUMBER'. Ex: Fixes/Related #...)

View File

@ -4,63 +4,63 @@
name: "CodeQL" name: "CodeQL"
on: on:
# Scan only for push on the primary branch for now # Scan only for push on the primary branch for now
push: push:
branches: [ main ] branches: [ main ]
pull_request: pull_request:
branches: [ main ] branches: [ main ]
jobs: jobs:
# job i # job i
analyze: analyze:
# Display name # Display name
name: Analyze name: Analyze
# Environment # Environment
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
actions: read actions: read
contents: read contents: read
security-events: write security-events: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
# Languages to scan # Languages to scan
language: [ 'java' ] language: [ 'java' ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
# Setup Java # Setup Java
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: 18 java-version: 18
cache: 'maven' cache: 'maven'
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# Cache build process too like in the maven config # Cache build process too like in the maven config
- uses: actions/cache@v3.0.5 - uses: actions/cache@v3.0.5
with: with:
path: ~/.m2/repository path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-maven- ${{ runner.os }}-maven-
# Auto build attempts to build any compiled languages (C/C++, C#, or Java). # Auto build 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) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v2 uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2

View File

@ -7,36 +7,35 @@ name: Java CI
# Build on every pull request regardless of the branch # Build on every pull request regardless of the branch
# Wiki: https://help.github.com/en/actions/reference/events-that-trigger-workflows # Wiki: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: on:
push: push:
branches: branches:
- main - main
pull_request: pull_request:
branches: branches:
- main - main
jobs: jobs:
# job id # job id
build_and_test: build_and_test:
# Environment image - always use the newest OS # Environment image - always use the newest OS
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Run steps # Run steps
steps: steps:
# Pull changes # Pull changes
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# Setup Java # Setup Java
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: 18 java-version: 18
cache: 'maven' cache: 'maven'
# Build and test (included in package) # Build and test (included in package)
- name: Build with Maven and test - name: Build with Maven and test
# Run non-interactive, package (with compile+test), # Run non-interactive, package (with compile+test),
# ignore snapshot updates, because they are likely to have breaking changes, enforce checksums to validate # ignore snapshot updates, because they are likely to have breaking changes, enforce checksums
# possible errors in dependencies run: mvn test --batch-mode --threads 2.0C --no-snapshot-updates --strict-checksums --file pom.xml
run: mvn test --batch-mode --threads 2.0C --no-snapshot-updates --strict-checksums --file pom.xml

View File

@ -25,7 +25,7 @@
SOFTWARE. SOFTWARE.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -86,7 +86,8 @@
<!-- Rename the service file too to let SLF4J api find our own relocated jdk logger --> <!-- Rename the service file too to let SLF4J api find our own relocated jdk logger -->
<!-- Located in META-INF/services --> <!-- Located in META-INF/services -->
<transformers> <transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> <transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers> </transformers>
<minimizeJar>true</minimizeJar> <minimizeJar>true</minimizeJar>
<filters> <filters>
@ -378,7 +379,7 @@
<version>${nettyVersion}</version> <version>${nettyVersion}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId> <artifactId>netty-codec</artifactId>

View File

@ -25,7 +25,7 @@
SOFTWARE. SOFTWARE.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -74,7 +74,8 @@
<!-- Rename the service file too to let SLF4J api find our own relocated jdk logger --> <!-- Rename the service file too to let SLF4J api find our own relocated jdk logger -->
<!-- Located in META-INF/services --> <!-- Located in META-INF/services -->
<transformers> <transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> <transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers> </transformers>
<filters> <filters>
<filter> <filter>

View File

@ -25,7 +25,7 @@
SOFTWARE. SOFTWARE.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -25,7 +25,7 @@
SOFTWARE. SOFTWARE.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -25,7 +25,7 @@
SOFTWARE. SOFTWARE.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>