Skip to content

Commit

Permalink
add velocity-plugin.json so I can publish under velocity lol
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Jul 18, 2024
1 parent 0107676 commit e7b467c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Set Version
run: |
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' src/main/resources/fabric.mod.json
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' src/main/resources/velocity-plugin.json
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id "xyz.jpenilla.run-velocity" version "2.3.0"
id "io.github.goooler.shadow" version "8.1.8"
id 'io.freefair.lombok' version '8.6'
}
Expand Down Expand Up @@ -125,3 +126,9 @@ jar {
rename { "${it}_${project.archivesBaseName}" }
}
}

tasks {
runVelocity {
velocityVersion(project.velocity_version)
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ yarn_mappings=1.21+build.7
loader_version=0.16.0
fabric_version=0.100.7+1.21

velocity_version=3.3.0-SNAPSHOT
adventure_version=5.14.0

# Mod Properties
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/velocity-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id":"sqlib",
"name":"SQLib",
"version":"debug-build",
"description":"A simple SQL wrapper with a focus on Minecraft use cases",
"authors":["MrNavaStar"],
"main": "me.mrnavastar.sqlib.SQLib"
}

0 comments on commit e7b467c

Please sign in to comment.