Skip to content
Snippets Groups Projects
Verified Commit 36ffd331 authored by Griefed's avatar Griefed :joystick:
Browse files

breaking(Addon Suite Upgrade): Move to new ServerPackCreator addon suite....

breaking(Addon Suite Upgrade): Move to new ServerPackCreator addon suite. Provide examples for all extension endpoints.  Examples for ConfigCheck-, ConfigPanel-, Tab-, PreGen-, PreZip- and PostGen extensions, global addon configuration, extension configuration and more.
parent dffdd495
No related branches found
No related tags found
No related merge requests found
Showing
with 420 additions and 932 deletions
......@@ -18,20 +18,20 @@ jobs:
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build documentation
run: ./gradlew about build -x test
run: ./gradlew javadoc -Pversion='' --info --full-stacktrace -x test
- name: List files
run: ls -ahl build/libs
# DEPLOY TO GH-PAGES
- name: Deploy to GitHub-Pages
uses: JamesIves/github-pages-deploy-action@v4.4.0
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: build/docs/javadoc
name: Create GitHub Pre-Release after GitLab tag mirror
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-pre.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
# OUTPUTS
outputs:
newtag: ${{ steps.tag.outputs.tag }}
uploadurl: ${{ steps.create_release.outputs.upload_url }}
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
fetch-depth: 0
# EXTRACT TAG FROM PUSH
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Use tag
run: echo ${{steps.tag.outputs.tag}}
# GENERATE CHANGELOG, RELEASE
- id: conventional_changelog
uses: ardalanamini/auto-changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{steps.tag.outputs.tag}}
body: |
Automatic release of version: **${{steps.tag.outputs.tag}}**
**Changes in this release:**
${{ steps.conventional_changelog.outputs.changelog }}
draft: false
prerelease: true
main:
needs: release
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
ref: main
fetch-depth: 0
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to GitHub Packages
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
id: upload-release-asset-sources
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
id: upload-release-asset-javadoc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
alternative:
needs: release
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
ref: alternativeExtensionDeclaration
fetch-depth: 0
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to GitHub Packages
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
id: upload-release-asset-sources
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
id: upload-release-asset-javadoc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
tetris:
needs: release
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
ref: tetris
fetch-depth: 0
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to GitHub Packages
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
id: upload-release-asset-sources
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
id: upload-release-asset-javadoc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
\ No newline at end of file
......@@ -3,9 +3,10 @@ name: Create GitHub Release after GitLab tag mirror
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '*'
jobs:
release:
runs-on: ubuntu-latest
# OUTPUTS
......@@ -26,12 +27,22 @@ jobs:
- name: Use tag
run: echo ${{steps.tag.outputs.tag}}
# GENERATE CHANGELOG, RELEASE
- id: conventional_changelog
uses: ardalanamini/auto-changelog@master
# GET RELEASE INFO
- name: Get Release Info
run: |
curl --header \
'PRIVATE-TOKEN: ${{ secrets.GITLAB_TOKEN }}' \
'https://git.griefed.de/api/v4/projects/95/releases/${{steps.tag.outputs.tag}}' >> ./version.json
# GET DESCRIPTION
- name: Extract version from package.json
uses: sergeysova/jq-action@v2
id: description
with:
token: ${{ secrets.GITHUB_TOKEN }}
cmd: 'jq .description version.json -r'
multiline: true
# GENERATE RELEASE
- name: Create Release
id: create_release
uses: actions/create-release@latest
......@@ -40,10 +51,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{steps.tag.outputs.tag}}
body: |
Automatic release of version: **${{steps.tag.outputs.tag}}**
**Changes in this release:**
${{ steps.conventional_changelog.outputs.changelog }}
body: ${{ steps.description.outputs.value }}
draft: false
prerelease: false
......@@ -62,140 +70,10 @@ jobs:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to GitHub Packages
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
id: upload-release-asset-sources
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
id: upload-release-asset-javadoc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/ExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: ExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
alternative:
needs: release
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
ref: alternativeExtensionDeclaration
fetch-depth: 0
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to GitHub Packages
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
id: upload-release-asset-sources
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
id: upload-release-asset-javadoc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: AlternativeExtensionDeclaration-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
tetris:
needs: release
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
ref: tetris
fetch-depth: 0
# BUILD PROJECT AND PUBLISH TO PACKAGES
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'zulu'
java-version: '8'
check-latest: true
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
......@@ -205,11 +83,7 @@ jobs:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEW_VERSION=$(echo "${{ needs.release.outputs.newtag }}")
echo "New version: ${NEW_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew about
./gradlew -Pversion=${NEW_VERSION} build --info -x test
./gradlew -Pversion=${{ needs.release.outputs.newtag }} build --info --full-stacktrace -x test
# UPLOAD ASSETS TO RELEASE
- name: Upload Release Asset Main Jar
......@@ -219,8 +93,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}.jar
asset_path: ./build/libs/ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_name: ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}.jar
asset_content_type: application/jar
- name: Upload Release Asset Sources Jar
......@@ -230,8 +104,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}-sources.jar
asset_path: ./build/libs/ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_name: ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}-sources.jar
asset_content_type: application/jar
- name: Upload Release Asset Javadoc Jar
......@@ -241,6 +115,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.uploadurl }}
asset_path: ./build/libs/MiniGame-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: MiniGame-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_path: ./build/libs/ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_name: ServerPackCreatorExampleAddon-${{ needs.release.outputs.newtag }}-javadoc.jar
asset_content_type: application/jar
\ No newline at end of file
......@@ -6,104 +6,28 @@ on:
workflow_dispatch:
jobs:
main:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Where is Java
run: which java
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew about build --no-daemon --info
- name: List files in libs
run: ls -ahl build/libs
- uses: actions/upload-artifact@v3
with:
name: build-artifacts-gradle
path: |
build/libs/
!build/libs/libraries/
frontend/dist/spa
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
if: failure()
with:
name: report
path: build/reports/tests/test/
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
alternative:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: alternativeExtensionDeclaration
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'zulu'
java-version: '8'
check-latest: true
cache: 'gradle'
- name: Where is Java
run: which java
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew about build --no-daemon --info
run: ./gradlew build --info --full-stacktrace
- name: List files in libs
run: ls -ahl build/libs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v2
with:
name: build-artifacts-gradle
path: |
build/libs/
!build/libs/libraries/
frontend/dist/spa
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
if: failure()
with:
name: report
path: build/reports/tests/test/
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
tetris:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: tetris
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Where is Java
run: which java
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew about build --no-daemon --info
- name: List files in libs
run: ls -ahl build/libs
- uses: actions/upload-artifact@v3
with:
name: build-artifacts-gradle
path: |
build/libs/
!build/libs/libraries/
frontend/dist/spa
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
if: failure()
with:
name: report
path: build/reports/tests/test/
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
\ No newline at end of file
build
if-no-files-found: warn
\ No newline at end of file
......@@ -4,11 +4,11 @@ stages:
- Release
- Build Release
services:
- name: ghcr.io/griefed/gitlab-ci-cd:2.0.9
alias: docker
image: ghcr.io/griefed/gitlab-ci-cd:2.0.9
variables:
project_name: "$CI_PROJECT_NAME"
SEMANTIC_RELEASE_PACKAGE: "$CI_PROJECT_NAME"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle"
workflow:
rules:
......@@ -16,17 +16,13 @@ workflow:
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TITLE =~ /^RELEASE:.+$/ && $CI_COMMIT_BRANCH' # && $CI_COMMIT_TAG == null
when: never
- when: always
Gradle Test:
image: griefed/baseimage-ubuntu-jdk-8:2.0.13
image: griefed/baseimage-ubuntu-jdk-8:2.0.4
stage: Gradle Test
services:
- name: griefed/gitlab-ci-cd:2.2.1
alias: docker
variables:
project_name: $CI_PROJECT_NAME
SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
before_script:
- echo "**** Running in $CI_JOB_ID ****"
- echo "**** Java location ****"
......@@ -35,60 +31,48 @@ Gradle Test:
- java -version
- echo "**** Allowing execution of gradlew ****"
- chmod +x gradlew
- echo "**** Ensure clean environment ****"
- ./gradlew about
script:
- echo "**** Building ServerPackCreator ****"
- ./gradlew build --info
except:
refs:
- tags
- webservice
variables:
- $CI_COMMIT_TITLE =~ /^RELEASE:.+$/
- ./gradlew build --info --full-stacktrace
artifacts:
when: always
name: "$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
expose_as: "Gradle-Test-Artifacts"
paths:
- build
expire_in: 1 week
cache:
- key:
files:
- build.gradle
- gradle/gradle-wrapper.properties
paths:
- .gradle
Release:
needs:
- job: 'Gradle Test'
artifacts: false
stage: Release
image: griefed/gitlab-ci-cd:2.2.1
services:
- name: griefed/gitlab-ci-cd:2.2.1
alias: docker
variables:
project_name: $CI_PROJECT_NAME
SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
image: ghcr.io/griefed/gitlab-ci-cd:2.0.9
script:
- npx semantic-release
only:
- main
except:
refs:
- tags
variables:
- $CI_COMMIT_TITLE =~ /^RELEASE:.+$/
rules:
- if: '$CI_COMMIT_BRANCH == "alpha" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
- if: '$CI_COMMIT_BRANCH == "beta" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TITLE !~ /^RELEASE:.+$/ && $CI_SERVER_HOST == "git.griefed.de"'
pages:
image: griefed/baseimage-ubuntu-jdk-8:2.0.13
image: griefed/baseimage-ubuntu-jdk-8:2.0.4
stage: Documentation
services:
- name: griefed/gitlab-ci-cd:2.2.1
alias: docker
variables:
project_name: $CI_PROJECT_NAME
SEMANTIC_RELEASE_PACKAGE: $CI_PROJECT_NAME
before_script:
- which java
- chmod +x gradlew
- ./gradlew about
script:
- ./gradlew build --info -x test
- "./gradlew javaDoc -Pversion='' --info --full-stacktrace -x test"
- cp -Rf build/docs/javadoc public
- LC_COLLATE=C ls -ahl --group-directories-first --color=auto
public
- LC_COLLATE=C ls -ahl --group-directories-first --color=auto public
only:
- master
- main
artifacts:
paths:
......
......@@ -64,7 +64,7 @@ generateNotes:
section: '🧨 Breaking changes!'
hidden: false
- type: 'build'
section: ' Build and Dependencies'
section: '🦊 CI/CD'
hidden: false
- type: 'chore'
section: 'Other'
......
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build -x test" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="--info --stacktrace -x test" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="clean" />
<option value="build" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
\ No newline at end of file
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="--info --stacktrace" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="clean" />
<option value="build" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
\ No newline at end of file
## [3.0.16](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.15...3.0.16) (2022-08-30)
### ⚗ Build and Dependencies
* **Dependencies:** Update Mockito Core to 4.7.0 ([6f5be52](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/6f5be52a0c5872b35aae53ee0ef98dc7d9321723))
* **Dependencies:** Update ServerPackCreator to 3.12.0 ([28aa2e0](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/28aa2e00b34837ee399115f86c076f3156c2eea2))
## [3.0.15](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.14...3.0.15) (2022-08-10)
### ⚗ Build and Dependencies
* **deps:** bump junit-jupiter-api from 5.8.2 to 5.9.0 ([cd5526c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/cd5526cad69bdff9bbf0e398c3662230e552ae92))
* **deps:** bump junit-jupiter-engine from 5.8.2 to 5.9.0 ([987c90d](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/987c90d9150714c4f44e651f648572dae89d0c70))
## [3.0.14](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.13...3.0.14) (2022-08-06)
### 🛠 Fixes
* **deps:** update junit5 monorepo to v5.9.0 ([f32dbf4](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/f32dbf435eff97564653e5992580f338b220805e))
### Other
* **deps:** update dependency ghcr.io/griefed/gitlab-ci-cd to v2.0.9 ([be309fb](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/be309fb259906174cb31b7f468dab98e36c7ff5f))
* **deps:** update dependency gradle to v7.5 ([ca9ebb8](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/ca9ebb8d4cbf1b5faf89afaefa4f5b4d80665f3a))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.12 ([c31bd6b](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/c31bd6b3b12ffc7f76779dfe62c1087f4fde25b8))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.9 ([77e0e72](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/77e0e72290fcb0e0cceb6c59c7ba76a0ca8d8571))
## [3.0.13](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.12...3.0.13) (2022-07-25)
### ⚗ Build and Dependencies
* **Dependencies:** Update dependency ServerPackCreator to 3.10.1 ([401f194](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/401f1949b7f27364e460cb01a428c67318b98dca))
* **deps:** bump JamesIves/github-pages-deploy-action ([c49c29c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/c49c29cdaa1329683a7dd06a8e81e1399bb60b0d))
## [3.0.12](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.11...3.0.12) (2022-07-16)
### ⚗ Build and Dependencies
* **Dependencies:** Update dependency ServerPackCreator to 3.9.0. ([4f402c0](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/4f402c0fcb822a0dba4c7fa1b452e3d241edae00))
### Other
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.11 ([e24ce0e](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/e24ce0e0b5de447f092de10b7c88344ed005fea4))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.8 ([e9a98c7](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/e9a98c7f0e780ff7ed7ae835a98503533b2cdb1e))
* **deps:** update dependency org.apache.logging.log4j:log4j-api to v2.18.0 ([aa2b824](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/aa2b824d8ef8fcc39400ce97accacc5809277b49))
* **deps:** update dependency org.pf4j:pf4j to v3.7.0 ([3a0a9da](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/3a0a9da49fffb0da13bf47f4b463e4b264e7e90a))
* **deps:** update jamesives/github-pages-deploy-action action to v4.3.4 ([fd9a81a](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/fd9a81afd57b2cbf290a9c02266ac4dc2a21bbbb))
## [3.0.11](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.10...3.0.11) (2022-06-26)
### ⚗ Build and Dependencies
* **Dependencies:** Update dependency ServerPackCreator to 3.6.0. ([1196adc](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/1196adc7daa729ce9e3c1280499baef4cd7e7108))
## [3.0.10](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.9...3.0.10) (2022-06-22)
### ⚗ Build and Dependencies
* **Dependencies:** Update dependency ServerPackCreator to 3.5.0. ([9ec4dfc](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/9ec4dfc6fde3bd77940633e1e9607ad5afdd9c02))
## [3.0.9](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.8...3.0.9) (2022-06-18)
### ⚗ Build and Dependencies
* **Dependencies:** Update dependencies ([5935d8a](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/5935d8a0724a46e9c8332bc36a729201eb8c1e08))
### Other
* **deps:** update dependency de.griefed:serverpackcreator to v3.4.1 ([82e5f3b](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/82e5f3b44e977144ddd8d5320e21a98a99ca3a99))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.10 ([2396cff](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/2396cff155d937817ce3146b1d7afc63d0290da6))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.9 ([aacf2f8](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/aacf2f8b49851006ae86beb648800516b5f3bf75))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.6 ([304f169](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/304f169d0109a8f62a63667e88bb0033c81e1b50))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.7 ([1613c63](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/1613c633dcc55bdc803da8df2af232732e246358))
* **deps:** update dependency org.mockito:mockito-core to v4.5.1 ([7f7cc1c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/7f7cc1ce38e00941805d3657a08b60f5ba286aa5))
* **deps:** update jamesives/github-pages-deploy-action action to v4.3.3 ([829433c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/829433c2984fb190a878900a86f09d918fe76ae2))
### [3.0.8](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.7...3.0.8) (2022-04-24)
### ⚗ Build and Dependencies
* **deps:** bump actions/upload-artifact from 2 to 3 ([4b39e58](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/4b39e586947e919fe4ec300e06ef71a3be1820d2))
* **deps:** bump JamesIves/github-pages-deploy-action ([84948ea](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/84948eab9c81dc25bdd055163543f6ca9faae5d6))
* **ServerPackCreator:** Update to 3.3.0 ([fd86bee](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/fd86bee12170ae19e324a584c7046c54ba56bcb8))
### [3.0.7](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.6...3.0.7) (2022-04-15)
### ⚗ Build and Dependencies
* **ServerPackCreator:** Update to 3.1.0 ([8602f24](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/8602f24c6b9aa746f2907c693e0de79e85977bfa))
### Other
* **deps:** update actions/checkout action to v3 ([37f52e4](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/37f52e4154da7bcf37fd36153378be8d211683ff))
* **deps:** update actions/upload-artifact action to v3 ([7b82039](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/7b820397e2c578ec2de1fbde2e4ac9d9d3f4ef46))
* **deps:** update dependency gradle to v7.4.2 ([1294ba8](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/1294ba80e3c954ffedaa9968ffd79c504c170078))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.8 ([fa73205](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/fa73205349c5dbeb2242eae3ec88825421915a4d))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.5 ([632e7a7](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/632e7a71190327ec00b52ce4ff41a33b55fbfb65))
### [3.0.6](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.5...3.0.6) (2022-03-27)
### ⚗ Build and Dependencies
* **deps:** bump log4j-api from 2.17.1 to 2.17.2 ([95ffab5](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/95ffab5156663e9d0709ba1c1f146295a9667822))
* **deps:** bump mockito-core from 4.3.1 to 4.4.0 ([d42748c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/d42748c8e234972b67bc3fa350e492baff294fea))
* **deps:** bump serverpackcreator from 3.0.0-beta.7 to 3.0.0-beta.9 ([ecc0ed3](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/ecc0ed37aa9305a714bd2f4cb641e561f1420a52))
* **deps:** bump serverpackcreator from 3.0.0-beta.9 to 3.0.0-beta.10 ([3707498](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/3707498dfe61dc753856431c14a1817843dc21a8))
* **deps:** Update ServerPackCreator to 3.0.1, amongst other dependency updates. ([08c4780](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/08c478054df7d36f5aef7a67c39da6f48d2e86a7))
### Other
* **deps:** update dependency de.griefed:serverpackcreator to v3.0.0-beta.9 ([d489876](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/d4898766dcbedd754242fc8960e52df4948276d0))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.7 ([ccdafde](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/ccdafdeb1ef0e59f99660db1fdb980be91451110))
### [3.0.5](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.4...3.0.5) (2022-02-27)
### ⚗ Build and Dependencies
* **ServerPackCreator:** Update to beta.7 ([b28d80b](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/b28d80b4fec0323cdc39aea75f49678a4e3060b5))
### 🦊 CI/CD
* **GitHub:** Correctly execute (pre)release actions when tags are pushed. ([34f5e0e](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/34f5e0ed694609f10ebac4c722badf299fc9176e))
### Other
* **deps:** update actions/setup-java action to v3 ([2daeabe](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/2daeabe7b2afba6ade6e04b24b7104eb316b35de))
* **deps:** update dependency de.griefed:serverpackcreator to v3.0.0-beta.3 ([c2858c5](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/c2858c5747d2fd17e625528f0e508a224fbeec06))
* **deps:** update dependency de.griefed:serverpackcreator to v3.0.0-beta.6 ([69429b0](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/69429b03879038861747d90199a8100b45057852))
* **deps:** update dependency griefed/baseimage-ubuntu-jdk-8 to v2.0.6 ([d9273af](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/d9273afc07c421e21258fd4d55c22d05604908f8))
* **deps:** update dependency griefed/gitlab-ci-cd to v2.0.3 ([e1c9704](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/e1c97043ab53764afa914bff12d2f0c77fd8831a))
* **deps:** update griefed/baseimage-ubuntu-jdk-8 docker tag to v2.0.5 ([5b63cb8](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/5b63cb84097663f22971ea29b4fc84405492fce2))
* **deps:** update jamesives/github-pages-deploy-action action to v4.2.5 ([6f9b52e](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/6f9b52e85aa2d2183d524ca73e71efc7e0357b8d))
* **Icon:** Add icon ([b874a32](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/b874a321f9e505bb576771949d747d8737df0ca3))
### [3.0.4](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.3...3.0.4) (2022-02-19)
### ⚗ Build and Dependencies
* **ServerPackCreator:** Update to beta.3 ([61689a2](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/61689a27bc2a4c2a6d0620774a4ab014806b01af))
### 🦊 CI/CD
* Fix GitHub release job asset upload for MiniGame branch ([79be391](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/79be3918b57a74e09428dcc75f65aacdc4a1a99c))
### [3.0.3](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.2...3.0.3) (2022-02-15)
### 🦊 CI/CD
* **deps:** Bump ServerPackCreator to 3.0.0-beta.1 ([9d2ea8f](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/9d2ea8f4b36675e2cd6de16dd71c15a63c057048))
* **branches:** Add different branches to releases and tests, so people can download the different examples and use them. ([43ac00d](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/43ac00df930107f578817a4fb5f84a9e62ea0868))
* **release:** Don't build release assets on GitLab. Don't upload artifacts from test job. ([016d69c](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/016d69c0abcd1b237751787f2815c1465d6e5948))
* **release:** On tag, build all three branches and upload assets to generated release. ([f15205a](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/f15205aa3c9f5df1ca2643a553b93e001376e6b4))
### Other
* Add info about additional example in alternativeExtensionDeclaration branch ([acbf95e](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/acbf95ef4a8cbc9514fb4fd281a5c906ef5ad4ce))
* **deps:** update dependency gradle to v7.4 ([f87176b](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/f87176bf16db596c803f152443e49191a2bc8fd5))
* **deps:** update griefed/baseimage-ubuntu-jdk-8 docker tag to v2.0.3 ([0a41972](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/0a419721a720e47ac83729f6ead8d7532bbbe5c3))
* **deps:** update griefed/baseimage-ubuntu-jdk-8 docker tag to v2.0.4 ([b102243](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/b1022430720088830a696ecb70a7347d80f33b21))
* **deps:** update griefed/gitlab-ci-cd docker tag to v2.0.1 ([f6096fe](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/f6096fea21b140465432dbe87c5e4d8380ad849d))
* **deps:** update jamesives/github-pages-deploy-action action to v4.2.3 ([7e220fd](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/7e220fde79c2833a191d41cf314bd604de215b4a))
* **README:** Rephrase addons section and include link to new addons overview website ([31b291a](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/commit/31b291aceab2f40393b418259c87050cdaee1cb9))
### [3.0.2](https://git.griefed.de/Griefed/ServerPackCreatorExampleAddon/compare/3.0.1...3.0.2) (2022-01-31)
......
This diff is collapsed.
......@@ -5,10 +5,24 @@ plugins {
id 'idea'
}
//noinspection GroovyUnusedAssignment
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
/*
CHANGE THESE VALUES
FOR YOUR OWN
ADDON
Addon ID must be unique.
Set it carefully!
*/
group 'de.griefed'
version = "1.0.0"
def pluginClass = group + '.exampleaddon.Example'
def addon_id = 'example'
def addon_name = 'Example Addon'
def addon_description = 'An example addon for ServerPackCreator, demonstrating all extension points available.'
def addon_author = 'Griefed'
//noinspection GroovyUnusedAssignment
sourceCompatibility = targetCompatibility = '1.8'
sourceSets {
//noinspection GroovyAssignabilityCheck
......@@ -35,28 +49,15 @@ sourceSets {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
configurations {
embed
implementation.extendsFrom(embed)
maven { url 'https://repo.spring.io/release' }
}
dependencies {
// Dependencies required for any plugin and/or extension to work
implementation 'org.pf4j:pf4j:3.7.0'
annotationProcessor 'org.pf4j:pf4j:3.7.0'
implementation 'de.griefed:serverpackcreator:3.12.0'
// Required if you want to log to any of ServerPackCreators logs
implementation 'org.apache.logging.log4j:log4j-api:2.18.0'
// Dependencies your plugin or extension requires and need to be shipped within the plugin#s JAR-file
embed 'commons-io:commons-io:2.11.0'
embed 'org.apache.commons:commons-lang3:3.12.0'
implementation 'de.griefed:serverpackcreator:3.14.0'
// Testing
testImplementation 'org.mockito:mockito-core:4.7.0'
testImplementation 'org.mockito:mockito-core:4.8.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
......@@ -65,57 +66,58 @@ test {
useJUnitPlatform()
// Mention test result in logs
testLogging {
events "passed",
events(
"passed",
"skipped",
"failed"
)
}
}
// Include specific files in resources folder, like the license and readme.
tasks.register('about', Copy) {
dependsOn tasks.named('clean')
from layout.projectDirectory.file("LICENSE") into layout.projectDirectory.dir("src/main/resources")
from layout.projectDirectory.file("README.md") into layout.projectDirectory.dir("src/main/resources")
}
tasks.withType(Javadoc) {
options.addStringOption('encoding', 'UTF-8')
}
javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE
classpath = sourceSets.main.runtimeClasspath
}
java {
withSourcesJar()
withJavadocJar()
processResources {
filesMatching("addon.toml") {
expand(
"version": project.version,
"addon_id": addon_id,
"addon_name": addon_name,
"addon_description": addon_description,
"addon_author": addon_author,
"addon_class": pluginClass
)
}
copy {
from layout.projectDirectory.file("LICENSE")
into layout.projectDirectory.dir("src/main/resources")
}
copy {
from layout.projectDirectory.file("README.md")
into layout.projectDirectory.dir("src/main/resources")
}
copy {
from layout.projectDirectory.file("CHANGELOG.md")
into layout.projectDirectory.dir("src/main/resources")
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.embed.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
//noinspection GroovyAssignabilityCheck
manifest {
attributes(
"Main-Class": "de.griefed.serverpackcreatoraddonexample.ExamplePlugin",
"Class-Path": configurations.embed.findAll { it.name.endsWith('jar') }.collect { zipTree(it) },
"Description": "Example plugin for ServerPackCreator",
"Main-Class": pluginClass,
"Description": addon_description,
"Built-By": System.getProperty("user.name"),
"Build-Timestamp": new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
"Created-By": "Gradle ${gradle.gradleVersion}",
"Build-Jdk": "${System.getProperty('java.version')} (${System.getProperty('java.vendor')} ${System.getProperty('java.vm.version')})",
"Build-OS": "${System.getProperty('os.name')} ${System.getProperty('os.arch')} ${System.getProperty('os.version')}",
"Plugin-Class": "de.griefed.serverpackcreatoraddonexample.ExamplePlugin",
"Plugin-Id": "example-plugin",
"Plugin-Provider": "Griefed",
"Plugin-Version": "0.0.1",
"Plugin-Description": "Example plugin for ServerPackCreator",
"Plugin-Class": pluginClass,
"Plugin-Id": addon_id,
"Plugin-Name": addon_name,
"Plugin-Provider": addon_author,
"Plugin-Version": project.version,
"Plugin-Description": addon_description
)
}
}
\ No newline at end of file
org.gradle.daemon=false
#org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.configureondemand=true
org.gradle.caching=true
\ No newline at end of file
No preview for this file type
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
......@@ -205,12 +205,6 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
......
......@@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
......@@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
......@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
......@@ -75,15 +75,13 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
......
img/afterGen.png

341 KiB

img/boot.png

319 KiB

img/configcheck.png

71.1 KiB

img/configpanel.png

54.2 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment