Skip to content

Commit

Permalink
Temp fix for JIJ
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Dec 8, 2024
1 parent 4de9bb2 commit d245adb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 14 additions & 1 deletion forge-main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ neoForge {
mods.create(modId) {
modSourceSets.add(forgeApi.sourceSets.main)
modSourceSets.add(sourceSets.main)
modSourceSets.add(sourceSets.test)
}

runs {
Expand Down Expand Up @@ -134,6 +135,8 @@ repositories {
}
}

val USE_JARINJAR_FOR_API = false

dependencies {
implementation("org.jetbrains:annotations:24.0.0")

Expand All @@ -144,7 +147,10 @@ dependencies {

compileOnly(forgeApi)
testCompileOnly(forgeApi)
jarJar(forgeApi)

if(USE_JARINJAR_FOR_API) {
jarJar(forgeApi)
}

// JEI
modCompileOnly(libs.jei.commonApi)
Expand All @@ -156,6 +162,13 @@ dependencies {
modCompileOnly("curse.maven:jade-324717:5776962")
}

if(!USE_JARINJAR_FOR_API) {
tasks.named<Jar>("jar") {
from(forgeApi.sourceSets["main"].output)
finalizedBy("reobfJar")
}
}

tasks.withType<Jar> {
val gitVersion = providers.exec {
commandLine("git", "rev-parse", "HEAD")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package dev.compactmods.machines.test.core;
package dev.compactmods.machines.test;

import dev.compactmods.machines.CompactMachines;
import dev.compactmods.machines.api.core.Constants;
import dev.compactmods.machines.client.CreativeTabs;
import dev.compactmods.machines.core.Registries;
import dev.compactmods.machines.test.TestBatches;
import net.minecraft.gametest.framework.GameTest;
import net.minecraft.gametest.framework.GameTestHelper;
import net.minecraftforge.gametest.GameTestHolder;
Expand Down

0 comments on commit d245adb

Please sign in to comment.