Skip to content

Commit

Permalink
Fixes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Oct 20, 2021
1 parent 105ddd5 commit 91fe19c
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ subprojects {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.17.1:2021.09.05-nightly-SNAPSHOT@zip")
parchment("org.parchmentmc.data:parchment-1.17.1:2021.10.17@zip")
}

// Thanks Shedaniel :)
Expand Down
4 changes: 2 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier null
classifier "fabric"
}

jar {
Expand Down Expand Up @@ -166,7 +166,7 @@ curseforge {

project {
id = "446499"
changelog = "A changelog can be found at https://github.com/samolego/Taterzens/releases/latest"
changelog = "A changelog can be found at https://github.com/samolego/Taterzens/releases/tag/${version}"
releaseType = "release"
addGameVersion "${project.minecraft_version}"
addGameVersion "Fabric"
Expand Down
10 changes: 6 additions & 4 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ configurations {
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentForge.extendsFrom common

}

loom {
Expand All @@ -36,7 +35,9 @@ dependencies {

// Libs
modImplementation "com.github.samolego.Config2Brigadier:config2brigadier-forge:${rootProject.c2b_version}"
shadow("com.github.samolego.Config2Brigadier:config2brigadier-forge:${rootProject.c2b_version}")
shadowCommon("com.github.samolego.Config2Brigadier:config2brigadier-forge:${rootProject.c2b_version}") {
transitive = false
}

common(project(path: ":common", configuration: "dev")) {
transitive = false
Expand All @@ -48,9 +49,10 @@ dependencies {

processResources {
inputs.property "version", project.version
inputs.property "c2b_version", rootProject.c2b_version

filesMatching("META-INF/mods.toml") {
expand "version": project.version
expand("version": project.version, "c2b_version": rootProject.c2b_version)
}
}

Expand All @@ -64,7 +66,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier null
classifier "forge"
}

jar {
Expand Down
32 changes: 31 additions & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,34 @@ modId = "minecraft"
mandatory = true
versionRange = "[1.17.1,)"
ordering = "NONE"
side = "SERVER"
side = "SERVER"

# C2B Lib
modLoader = "javafml"
loaderVersion = "[37,)"
#issueTrackerURL = ""
license = "LGPL-v3.0"

[[mods]]
modId = "config2brigadier"
version = "${c2b_version}"
displayName = "Config to Brigadier"
authors = "samo_lego"
description = '''
A library to automagically generate in-game command for config editing.
'''
#logoFile = ""

[[dependencies.config2brigadier]]
modId = "forge"
mandatory = true
versionRange = "[37,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.config2brigadier]]
modId = "minecraft"
mandatory = true
versionRange = "[1.17.1,)"
ordering = "NONE"
side = "BOTH"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fabric_version=0.40.8+1.17
forge_version=37.0.71

# Mod Properties
mod_version = 1.4.1
mod_version = 1.4.2
maven_group = org.samo_lego
archives_base_name = taterzens

Expand Down

0 comments on commit 91fe19c

Please sign in to comment.