Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ jobs:
# Set up the OS
runs-on: ubuntu-latest
env:
# Nexus credentials and GitHub token
NEXUS_USERNAME: '${{ secrets.NEXUS_USERNAME }}'
NEXUS_PASSWORD: '${{ secrets.NEXUS_PASSWORD }}'
# Sonatype Credentials & GitHub token
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# Set environment
env: 'prod'
ENV: 'prod'
PROJECT_NAME: 'TasksModule'
steps:
# Checkout the Code
- name: Checkout Code
uses: actions/checkout@v3
# Set up git hashes environment variables
- name: Git Hashes
uses: Im-Fran/git-hashes-action@v1.0.0
uses: Im-Fran/git-hashes-action@v1.0.3
# Set up version from tag environment variables
- name: Version from Tag Action
uses: Im-Fran/version-from-tag-action@v1.0.1
uses: Im-Fran/version-from-tag-action@v1.0.3
with:
remove-first-character: 'v'
# Set up the JDK
Expand All @@ -31,27 +32,30 @@ jobs:
with:
distribution: adopt
java-version: 11
cache: 'gradle'
# Make gradle executable
- name: Make gradle executable
run: chmod +x gradlew
# Clean, Test, Publish and Build (in that order to save the artifact to the action)
- name: Test, Deploy and Build with Gradle
run: ./gradlew clean test publish shadow dokkaHtml
run: ./gradlew clean test shadowJar dokkaHtml publish publishToSonatype closeAndReleaseSonatypeStagingRepository -no-daemon
# Now we store the artifact in the action
- name: Upload the artifact
uses: actions/upload-artifact@v3
with:
name: TasksModule
path: ./build/libs/TasksModule-${{ env.VERSION }}.jar
name: ${{ env.PROJECT_NAME }}
path: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar
# Here we upload the binary to the release
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./build/libs/TasksModule-${{ env.VERSION }}.jar application/java-archive
args: ./build/libs/${{ env.PROJECT_NAME }}-${{ env.VERSION }}.jar application/java-archive
# Now we deploy the documents to GitHub pages
- name: Deploy Dokka
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: build/dokka
clean: true
clean-exclude: |
CNAME
35 changes: 18 additions & 17 deletions .github/workflows/gradle-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Test"
# Only execute this workflow when a PR is opened or when something is pushed to the master branch
on: [push, pull_request]
on: [pull_request]
jobs:
testBuilds:
strategy:
Expand All @@ -12,20 +12,21 @@ jobs:
runs-on: ubuntu-latest
# Set up environment variables
env:
env: 'local' # Set to local, so it won't deploy the jar to the repos
ENV: 'local' # Set to local, so it won't deploy the jar to the repos
steps:
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean publish shadow -x dokkaHtml
# Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Setup java and maven
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java-version }}
cache: 'gradle'
# Setup executable gradle
- name: Make Gradle executable
run: chmod +x gradlew
# Test building without dokka
- name: Build Jar with Java ${{ matrix.java-version }}
run: ./gradlew clean shadowJar test -x dokkaHtml -no-daemon
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# v0.1.1 - Snapshot
## v0.2.0 - Velocity Support, Updates & Fixes
* Added sonatype
* Added gradle kotlin dsl
* Added velocity support
* Fixed issue where cancelled bungee tasks won't start again
* Updated workflows
* Updated dependencies
* Updated README.md

## v0.1.1 - Snapshot
* Migration to JitPack
* Added JitCI badges
* Fixed description

# v0.1.0 - Snapshot
## v0.1.0 - Snapshot
Hello, World!
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![](https://jitci.com/gh/TheProgramSrc/SimpleCore-TasksModule/svg)](https://jitci.com/gh/TheProgramSrc/SimpleCore-TasksModule)
[![](https://jitpack.io/v/xyz.theprogramsrc/SimpleCore-TasksModule.svg)](https://jitpack.io/#xyz.theprogramsrc/SimpleCore-TasksModule)
[![](https://img.shields.io/nexus/s/xyz.theprogramsrc/tasksmodule?server=https%3A%2F%2Fs01.oss.sonatype.org)]()

# SimpleCore-TasksModule
Tasks manager module for SimpleCore API.<br>
Expand Down
7 changes: 4 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

The following list can tell you if the version is supported or not. If the version is not supported you won't get support from the team

| Version | Supported |
|-------| ------------------ |
| 0.1.X | :white_check_mark: |
| Version | Supported | Security Updates |
|---------|---------------------|--------------------|
| 0.2.X | :white_check_mark: | :white_check_mark: |
| 0.1.X | :x: | :x: |

## Reporting a Vulnerability

Expand Down
113 changes: 0 additions & 113 deletions build.gradle

This file was deleted.

Loading