-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: comply with
simplecoreapi
0.8.0 (#34)
* Updated some dependencies * Migrated to new module system
- Loading branch information
Showing
7 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
name: "Build and Deploy" | ||
on: | ||
release: | ||
types: [published,edited] | ||
types: [published, edited] | ||
jobs: | ||
build: | ||
# Set up the OS | ||
runs-on: ubuntu-latest | ||
env: | ||
# Sonatype Credentials & GitHub token | ||
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}' | ||
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}' | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
SONATYPE_USERNAME: "${{ secrets.SONATYPE_USERNAME }}" | ||
SONATYPE_PASSWORD: "${{ secrets.SONATYPE_PASSWORD }}" | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
# Set environment | ||
ENV: 'prod' | ||
PROJECT_NAME: 'NetworkingModule' | ||
ENV: "prod" | ||
PROJECT_NAME: "NetworkingModule" | ||
steps: | ||
# Checkout the Code | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
# Set up git hashes environment variables | ||
- name: Git Hashes | ||
uses: Im-Fran/[email protected] | ||
# Set up version from tag environment variables | ||
- name: Version from Tag Action | ||
uses: Im-Fran/[email protected] | ||
with: | ||
remove-first-character: 'v' | ||
remove-first-character: "v" | ||
# Set up the JDK | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
cache: 'gradle' | ||
cache: "gradle" | ||
# Make gradle executable | ||
- name: Make gradle executable | ||
run: chmod +x gradlew | ||
|
@@ -52,7 +52,7 @@ jobs: | |
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/[email protected].1 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: build/dokka | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/xyz/theprogramsrc/networkingmodule/NetworkingModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package xyz.theprogramsrc.networkingmodule | ||
|
||
import xyz.theprogramsrc.simplecoreapi.global.models.module.Module | ||
import xyz.theprogramsrc.simplecoreapi.global.models.module.ModuleDescription | ||
|
||
class NetworkingModule: Module { | ||
|
||
override val description: ModuleDescription = | ||
ModuleDescription( | ||
name = "@name@", | ||
version = "@version@", | ||
authors = listOf("Im-Fran") | ||
) | ||
|
||
override fun onDisable() { | ||
|
||
} | ||
|
||
override fun onEnable() { | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.