Skip to content

Commit bfa2bd7

Browse files
Update to ForgeGrade 5, Gradle 7.4, and bump up some dependencies (#236)
* Update to ForgeGrade 5, Gradle 7.4 * Fix build * Fix info expand * Cleanup Co-authored-by: Constructor <[email protected]>
1 parent 4f3e896 commit bfa2bd7

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

build.gradle

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'net.minecraftforge.gradle:ForgeGradle:4.+'
12+
classpath 'net.minecraftforge.gradle:ForgeGradle:5.+'
1313
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1515
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
@@ -44,6 +44,7 @@ repositories {
4444
maven { url = 'https://repo.spongepowered.org/maven/' }
4545
maven { url = 'https://impactdevelopment.github.io/maven/' }
4646
maven { url = "https://jitpack.io" }
47+
mavenCentral()
4748
}
4849

4950
minecraft {
@@ -76,19 +77,20 @@ dependencies {
7677
// Forge
7778
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
7879

79-
jarLibs('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
80+
jarLibs('org.spongepowered:mixin:0.8.3') {
8081
exclude module: 'commons-io'
8182
exclude module: 'gson'
8283
exclude module: 'guava'
8384
exclude module: 'launchwrapper'
84-
exclude module: 'log4j-core' // we want to exclude this as well because 0.7.11 includes it too new for MC
85+
exclude module: 'log4j-core' // we want to exclude this as well because 0.8.3 includes it too new for MC
8586
}
8687

8788
// Hacky way to get mixin work
88-
annotationProcessor('org.spongepowered:mixin:0.8.2:processor') {
89+
annotationProcessor('org.spongepowered:mixin:0.8.3:processor') {
8990
exclude module: 'gson'
9091
}
9192

93+
// Not the latest Reflections because it breaks Future compatibility :/
9294
jarLibs('org.reflections:reflections:0.9.12') {
9395
exclude module: 'gson'
9496
exclude module: 'guava'
@@ -125,7 +127,7 @@ dependencies {
125127

126128
// Add them back to compileOnly (provided)
127129
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
128-
compileOnly 'org.jetbrains:annotations:22.0.0'
130+
compileOnly 'org.jetbrains:annotations:23.0.0'
129131

130132
// This Baritone will NOT be included in the jar
131133
implementation 'com.github.cabaletta:baritone:1.2.14'
@@ -143,13 +145,12 @@ mixin {
143145
}
144146

145147
processResources {
146-
inputs.property 'version', project.version
147-
148148
exclude '**/rawimagefiles'
149149

150150
from(sourceSets.main.resources.srcDirs) {
151+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
151152
include 'mcmod.info'
152-
expand 'version': project.version
153+
expand version: version, 'mcversion': minecraftVersion
153154
}
154155
}
155156

@@ -182,6 +183,7 @@ jar {
182183

183184
// Copy needed libs to jar
184185
from {
186+
exclude "**/module-info.class"
185187
configurations.jarLibs.collect {
186188
it.isDirectory() ? it : zipTree(it)
187189
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ mappingsVersion=39-1.12
1111

1212
kotlinVersion=1.6.10
1313
kotlinxCoroutinesVersion=1.6.0
14-
dokkaVersion=1.6.0
14+
dokkaVersion=1.6.10
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/com/lambda/client/mixin/client/MixinMinecraft.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import net.minecraft.util.EnumHand;
2424
import net.minecraft.util.math.RayTraceResult;
2525
import net.minecraftforge.common.ForgeHooks;
26-
import org.spongepowered.asm.lib.Opcodes;
26+
import org.objectweb.asm.Opcodes;
2727
import org.spongepowered.asm.mixin.Mixin;
2828
import org.spongepowered.asm.mixin.Shadow;
2929
import org.spongepowered.asm.mixin.injection.At;

src/main/resources/mcmod.info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{
33
"modid": "lambda",
44
"name": "Lambda",
5-
"description": "λ\nLambda is a free, open-source, Minecraft 1.12.2 utility mod made for the anarchy experience.\nA visionary plugin system that allows additional modules to be added, without the need to create a fork!\nCustomize your experience, and improve your efficiency!",
5+
"description": "λ\nLambda v${version} is a free, open-source, Minecraft ${mcversion} utility mod made for the anarchy experience.\nA visionary plugin system that allows additional modules to be added, without the need to create a Lambda fork!\nCustomize your experience, and improve your efficiency!",
66
"version": "${version}",
7-
"mcversion": "1.12.2",
7+
"mcversion": "${mcversion}",
88
"url": "https://github.com/lambda-client/lambda",
99
"updateUrl": "",
1010
"authorList": [

0 commit comments

Comments
 (0)