From 608756dd0098588dea19f5373b554e7b55aa0959 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Sun, 29 Jan 2023 10:29:16 +0000 Subject: [PATCH] [ci skip] Fix default tests no longer having access to minecraft --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 1fe1a4f..069a5a6 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' }