Skip to content

Commit

Permalink
update to loom 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Fourmisain committed Jul 9, 2024
1 parent 10f65f0 commit e309341
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'com.modrinth.minotaur' version '2.+'
Expand Down Expand Up @@ -82,7 +82,7 @@ publishing {
}

def changesMd = file('changes.md').getText('UTF-8')
def toList = (String s) -> s.split(',').collect{ it.trim() }
def toList = (String s) -> s.split(',').collect { it.trim() }
def gameVersionList = toList(project.game_version_list)

modrinth {
Expand All @@ -98,8 +98,8 @@ modrinth {
gameVersions = gameVersionList
loaders = ['fabric']
dependencies {
toList(project.modrinth_dependencies).each{ required.project(it) }
toList(project.modrinth_optional_dependencies).each{ optional.project(it) }
toList(project.modrinth_dependencies).each { required.project(it) }
toList(project.modrinth_optional_dependencies).each { optional.project(it) }
}
}
}
Expand All @@ -115,11 +115,11 @@ curseforge {
changelog = changesMd

addGameVersion 'Fabric'
gameVersionList.each{ addGameVersion(it) }
gameVersionList.each { addGameVersion(it) }

relations {
toList(project.curseforge_dependencies).each{ requiredDependency(it) }
toList(project.curseforge_optional_dependencies).each{ optionalDependency(it) }
toList(project.curseforge_dependencies).each { requiredDependency(it) }
toList(project.curseforge_optional_dependencies).each { optionalDependency(it) }
}
mainArtifact(remapJar.archiveFile.get().asFile) {
displayName = "${project.mod_version} [${versionRange(gameVersionList)}]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package randommcsomethin.fallingleaves.config;

import java.util.*;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

/** Old v0 config format used in versions 1.0 to 1.4 */
@SuppressWarnings({"FieldMayBeFinal", "CanBeFinal"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import randommcsomethin.fallingleaves.util.LeafUtil;
import randommcsomethin.fallingleaves.util.TextureCache;

import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
import me.shedaniel.autoconfig.ConfigData;
import me.shedaniel.autoconfig.serializer.GsonConfigSerializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
Expand Down

0 comments on commit e309341

Please sign in to comment.