Skip to content

Commit

Permalink
Updated gradle publish plugin (possibly fixing multiple require slugs?)
Browse files Browse the repository at this point in the history
  • Loading branch information
B1n-ry committed Feb 20, 2024
1 parent 40e7185 commit 2244fe5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
27 changes: 9 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'maven-publish'
id "me.modmuss50.mod-publish-plugin" version "0.4.5"
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

version = project.mod_version
Expand Down Expand Up @@ -30,11 +30,13 @@ publishMods {
end = project.minecraft_version
}

javaVersions.add(JavaVersion.VERSION_17)

clientRequired = true
serverRequired = true

projectSlug = project.archives_base_name;
requires {
slug = "fabric-api"
slug = "cloth-config"
}
requires("fabric-api", "cloth-config")
}

github {
Expand All @@ -55,22 +57,18 @@ publishMods {
end = project.minecraft_version
}

requires {
slug = "fabric-api"
slug = "cloth-config"
}
requires("fabric-api", "cloth-config")
}
}

repositories {
maven { url "https://maven.shedaniel.me/" } // cloth_config
maven { url "https://maven.terraformersmc.com/" } // mod_menu, trinkets
maven { url "https://maven.ladysnake.org/releases" } // cardinal_components
maven { url "https://maven.ladysnake.org/releases" } // Apoli dependency
maven { url "https://server.bbkr.space/artifactory/libs-release" } // LibGUI
maven { url "https://oss.sonatype.org/content/repositories/snapshots" } // Permission API
maven { url "https://jitpack.io" } // Apoli
maven { url "https://maven.nucleoid.xyz/" } // Common Protection API
maven { url 'https://maven.wispforest.io' } // owo
maven { // Inventorio, travelers backpack, numismatic overhaul, levelz (curseforge maven)
url "https://cursemaven.com"
content { includeGroup "curse.maven" }
Expand Down Expand Up @@ -104,13 +102,6 @@ dependencies {
modCompileOnly "curse.maven:numismaticoverhaul-${project.numismatic_version}"
modCompileOnly "com.github.apace100:apoli:${project.apoli_version}"
modCompileOnly "curse.maven:levelz-${project.levelz_version}"

// Dev dependencies
// modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
// modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cardinal_components_version}"
// modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cardinal_components_version}"
// modImplementation ""maven.modrinth:libz:${project.libz_version}""
// modImplementation "io.wispforest:owo-lib:${project.owo_version}"
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.b1n_ry.yigd.events.DropRuleEvent;
import com.b1n_ry.yigd.util.DropRule;
import com.tiviacz.travelersbackpack.component.ComponentUtils;
import com.tiviacz.travelersbackpack.component.ITravelersBackpackComponent;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.server.network.ServerPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public abstract class WorldRendererMixin {
* I feel like this is kinda cursed if this is the case, but I don't know how else to do it ¯\_(ツ)_/¯
* Also it seems to work, as long as the rendering on the outline render layer is an actual outline vertex consumer
*/
@SuppressWarnings("InvalidInjectorMethodSignature")
@ModifyVariable(method = "render", at = @At(value = "CONSTANT", args = "stringValue=blockentities", ordinal = 0), ordinal = 3)
private boolean modify(boolean value) {
boolean res = value || GraveBlockEntityRenderer.renderOutlineShader;
Expand Down

0 comments on commit 2244fe5

Please sign in to comment.