Update dependencies and fix bugs

- Update Gradle to 8.2-bin
- Update Shadow to 8.1.1
- Update DevAuth to 1.1.2
- Update Mixin to 0.8.5
- Add some missed property substitutions
This commit is contained in:
ILikePlayingGames 2023-07-01 23:41:16 -04:00 committed by nea
parent 3d719d9224
commit 8c46698f97
No known key found for this signature in database
GPG key ID: AA563E93EB628D91
5 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@ plugins {
java java
id("gg.essential.loom") version "0.10.0.+" id("gg.essential.loom") version "0.10.0.+"
id("dev.architectury.architectury-pack200") version "0.1.3" id("dev.architectury.architectury-pack200") version "0.1.3"
id("com.github.johnrengelman.shadow") version "7.1.2" id("com.github.johnrengelman.shadow") version "8.1.1"
} }
//Constants: //Constants:
@ -43,7 +43,7 @@ loom {
} }
sourceSets.main { sourceSets.main {
output.setResourcesDir(file("$buildDir/classes/java/main")) output.resourcesDir = file("$buildDir/classes/java/main")
} }
// Dependencies: // Dependencies:
@ -68,10 +68,10 @@ dependencies {
shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") { shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
isTransitive = false isTransitive = false
} }
annotationProcessor("org.spongepowered:mixin:0.8.4-SNAPSHOT") annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT")
// If you don't want to log in with your real minecraft account, remove this line // If you don't want to log in with your real minecraft account, remove this line
runtimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0") runtimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.2")
} }

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View file

@ -4,7 +4,7 @@ import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLInitializationEvent;
@Mod(modid = "examplemod", version = "1.0.0") @Mod(modid = "examplemod", useMetadata=true)
public class ExampleMod { public class ExampleMod {
@Mod.EventHandler @Mod.EventHandler
public void init(FMLInitializationEvent event) { public void init(FMLInitializationEvent event) {

View file

@ -4,7 +4,7 @@
"name": "Xample Mod", "name": "Xample Mod",
"description": "A mod that is used as an example.", "description": "A mod that is used as an example.",
"version": "${version}", "version": "${version}",
"mcversion": "1.8.9", "mcversion": "${mcversion}",
"url": "https://github.com/romangraef/Forge1.8.9Template/", "url": "https://github.com/romangraef/Forge1.8.9Template/",
"updateUrl": "", "updateUrl": "",
"authorList": [ "authorList": [

View file

@ -1,6 +1,6 @@
{ {
"package": "com.example.mixin", "package": "${mixinGroup}",
"refmap": "mixins.examplemod.refmap.json", "refmap": "mixins.${modid}.refmap.json",
"minVersion": "0.7", "minVersion": "0.7",
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_8",
"mixins": [ "mixins": [