@@ -8,16 +8,14 @@ buildscript {
88 }
99
1010 dependencies {
11- classpath ' net.minecraftforge.gradle:ForgeGradle:4.+'
12- classpath ' org.spongepowered:mixingradle:0.7-SNAPSHOT'
11+ classpath ' net.minecraftforge.gradle:ForgeGradle:5.+'
1312 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
1413 }
1514}
1615
1716apply plugin : ' idea'
1817apply plugin : ' kotlin'
1918apply plugin : ' net.minecraftforge.gradle'
20- apply plugin : ' org.spongepowered.mixin'
2119
2220compileJava {
2321 sourceCompatibility = targetCompatibility = ' 1.8'
@@ -67,11 +65,10 @@ configurations {
6765dependencies {
6866 minecraft " net.minecraftforge:forge:$minecraftVersion -$forgeVersion "
6967
70- // API coming soon
71- // implementation 'com.github.lambda-client:lambda:2.12'
72- implementation(files(" lib/lambda-3.0.1-api.jar" ))
68+ // Online maven dependency coming soon
69+ implementation files(" lib/lambda-3.1-api.jar" )
7370
74- implementation(' org.spongepowered:mixin:0.7.11-SNAPSHOT ' ) {
71+ implementation(' org.spongepowered:mixin:0.8.3 ' ) {
7572 exclude module : ' commons-io'
7673 exclude module : ' gson'
7774 exclude module : ' guava'
@@ -80,7 +77,7 @@ dependencies {
8077 }
8178
8279 // Hacky way to get mixin work
83- annotationProcessor(' org.spongepowered:mixin:0.8.2 :processor' ) {
80+ annotationProcessor(' org.spongepowered:mixin:0.8.3 :processor' ) {
8481 exclude module : ' gson'
8582 }
8683
@@ -113,29 +110,29 @@ dependencies {
113110
114111 // Add them back to compileOnly (provided)
115112 compileOnly " org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion "
116- compileOnly ' org.jetbrains:annotations:22 .0.0'
113+ compileOnly ' org.jetbrains:annotations:23 .0.0'
117114
118115 // This Baritone will NOT be included in the jar
119116 implementation ' com.github.cabaletta:baritone:1.2.14'
120117
118+ // Unit Testing frameworks
119+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.2'
120+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.2'
121+
121122 // Add your dependencies below
122123 // jarLibs 'com.lambda:example:1.0.0'
123124}
124125
125- mixin {
126- defaultObfuscationEnv ' searge'
127- add sourceSets. main, ' mixins.lambda.refmap.json'
128- }
129-
130126processResources {
131- inputs. property ' version' , project. version
132-
133127 exclude ' **/rawimagefiles'
134128
135129 from(sourceSets. main. resources. srcDirs) {
130+ duplicatesStrategy = DuplicatesStrategy . INCLUDE
136131 include ' plugin_info.json'
137132 expand ' version' : project. version
138133 }
139134}
140135
141- jar. finalizedBy(' reobfJar' )
136+ test {
137+ useJUnitPlatform()
138+ }
0 commit comments