Skip to content

Commit

Permalink
init 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nthxny committed Feb 9, 2024
1 parent 297354c commit 23ed4c1
Show file tree
Hide file tree
Showing 39 changed files with 453 additions and 389 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-multiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,51 @@ on:
types: [created]

jobs:
build_1_18:
if: "!startsWith(github.event.head_commit.message, '[skip]')"
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
steps:
- name: steal code from repository
uses: actions/checkout@v3

- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: cache gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle

- name: give gradle permission to murder github servers
run: chmod +x ./gradlew

- name: gradle murders github servers
run: ./gradlew assemble -PmcVer="1.18.2"

- name: Publish Fabric
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.18.2" :fabric:build :fabric:publish :fabric:publishMods

- name: Publish Forge
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
run: ./gradlew -PmcVer="1.18.2" :forge:build :forge:publish :forge:publishMods

build_1_19:
if: "!startsWith(github.event.head_commit.message, '[skip]')"
strategy:
Expand Down
18 changes: 18 additions & 0 deletions 1.18.2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# suppress inspection "UnusedProperty" for whole file
minecraft_version=1.18.2

# Mappings
# https://lambdaurora.dev/tools/import_quilt.html
quilt = 22
# https://parchmentmc.org/docs/getting-started
parchment = 2022.11.06

# Fabric - https://fabricmc.net/develop/
fabric=0.15.6
fabric_api=0.76.0

# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=40.2.0

cloth_config_version=6.5.116
architectury_version=4.11.93
1 change: 0 additions & 1 deletion 1.19.2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ fabric_api=0.76.0
# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=43.2.4

farmers_delight = 5051241
cloth_config_version=8.3.115
architectury_version=6.5.85
1 change: 0 additions & 1 deletion 1.20.1.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ fabric_api=0.87.0
# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=47.1.43

farmers_delight = 4679319
cloth_config_version=11.0.99
architectury_version=9.1.12
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {

// These are the access wideners depending on the minecraft version
def mcVersionToAccessWidenerVersion = [
"1.18.2": "1_18_2",
"1.19.2": "1_19_2",
"1.20.1": "1_20_1",
]
Expand Down Expand Up @@ -114,7 +115,6 @@ subprojects {
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings(loom.layered {
it.mappings("org.quiltmc:quilt-mappings:${rootProject.minecraft_version}+build.${rootProject.quilt}:intermediary-v2")
it.parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment}@zip")
it.officialMojangMappings { nameSyntheticMembers = false }
})
Expand All @@ -127,7 +127,6 @@ subprojects {

if (isForge) {
modImplementation("me.shedaniel.cloth:cloth-config-forge:${rootProject.cloth_config_version}")
modRuntimeOnly("curse.maven:farmers-delight-398521:${rootProject.farmers_delight}")
}
}

Expand Down
2 changes: 2 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# DO NOT EDIT
# Generated by the build script. Change mcVer property to change minecraft version.

POST_MC_1_18_2=
POST_CURRENT_MC_1_18_2=
POST_MC_1_19_2=
POST_CURRENT_MC_1_19_2=
PRE_CURRENT_MC_1_20_1=
Expand Down
36 changes: 0 additions & 36 deletions common/src/main/java/vice/example_mod/ExampleMod.java

This file was deleted.

8 changes: 0 additions & 8 deletions common/src/main/java/vice/example_mod/ExampleModClient.java

This file was deleted.

177 changes: 0 additions & 177 deletions common/src/main/java/vice/example_mod/ModConfig.java

This file was deleted.

46 changes: 0 additions & 46 deletions common/src/main/java/vice/example_mod/PlayerData.java

This file was deleted.

Loading

0 comments on commit 23ed4c1

Please sign in to comment.