[ci skip] Fix default tests no longer having access to minecraft

This commit is contained in:
Raven Szewczyk committed 2023-01-29 10:29:16 +00:00
1 parent a072a8a67a
commit 608756dd00
1 file changed
+11 -1
+11 -1
View File
@@ -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'
}