From 58f3e9366f7f1f566e456225a354688e3301e2f3 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Sun, 29 Jan 2023 10:35:28 +0000 Subject: buildscript update: Fix failing unittest --- build.gradle | 12 +++++++++++- dependencies.gradle | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 1fe1a4fedd..069a5a66ad 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1674986648 +//version: 1674988119 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. @@ -375,6 +375,16 @@ configurations.configureEach { } } +// Ensure tests have access to minecraft classes +sourceSets { + test { + java { + compileClasspath += sourceSets.patchedMc.output + sourceSets.mcLauncher.output + runtimeClasspath += sourceSets.patchedMc.output + sourceSets.mcLauncher.output + } + } +} + if (file('addon.gradle').exists()) { apply from: 'addon.gradle' } diff --git a/dependencies.gradle b/dependencies.gradle index 5c7464d046..cdae295d44 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -4,5 +4,5 @@ dependencies { testImplementation(platform('org.junit:junit-bom:5.8.2')) testImplementation('org.junit.jupiter:junit-jupiter') compile("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") - compile("com.github.GTNewHorizons:GT5-Unofficial:5.09.41.214:dev") + compile("com.github.GTNewHorizons:GT5-Unofficial:5.09.41.254:dev") } -- cgit