Skip to content

Commit

Permalink
feat: add 1.20 support and update auto building actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xCykrix committed Aug 1, 2024
1 parent f2acf8b commit 9b6f6e3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ jobs:
java-version: '17'
distribution: 'adopt'
architecture: x64
server-id: github
server-username: GITHUB_USER_REF
server-password: GITHUB_TOKEN_REF
- name: Compile
run: "mvn --batch-mode --update-snapshots clean package"
run: "mvn -B -Pgithub --update-snapshots clean package --file pom.xml"
env:
GITHUB_USER_REF: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN_REF: ${{ secrets.GH_PAT }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ or blocks without collision.
This plugin is based on the PluginCommon API. Updates to PluginCommon will
provide verioned and shaded assets associated with this plugin.

Reference GH Actions: https://www.schakko.de/2020/12/19/using-github-workflow-with-maven-dependencies-from-a-private-github-package-registry/

1. Update POM XML Plugins and Dependencies.
2. Update POM XML Version.
3. Build Plugin
Expand Down
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.xcykrix</groupId>
<artifactId>DynamicLights</artifactId>
<version>1.0.6-SNAPSHOT</version>
<version>1.0.7</version>
<packaging>jar</packaging>

<name>DynamicLights</name>
Expand Down Expand Up @@ -54,6 +54,21 @@
</resources>
</build>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>github</id>
<name>GitHub PluginCommon</name>
<url>https://maven.pkg.github.com/xcykrix/plugincommon</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
</repositories>
</profile>
</profiles>

<repositories>
<repository>
<id>spigotmc-repo</id>
Expand Down

0 comments on commit 9b6f6e3

Please sign in to comment.