Additional unit tests for the patcher + many bugfixes

This commit is contained in:
Anuken
2025-10-23 22:31:06 -04:00
parent effbdecbd5
commit bed851afe9
9 changed files with 176 additions and 37 deletions

View File

@@ -223,7 +223,7 @@ configure(project(":annotations")){
}
//compile with java 8 compatibility for everything except the annotation project
configure(subprojects - project(":annotations")){
configure(subprojects - project(":annotations") - project(":tests")){
tasks.withType(JavaCompile){
options.compilerArgs.addAll(['--release', '8'])
}
@@ -400,6 +400,12 @@ project(":tests"){
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.7.1"
}
tasks.withType(JavaCompile){
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
options.compilerArgs.addAll(['--release', '17'])
}
test{
//fork every test so mods don't interact with each other
forkEvery = 1