Skip to content

Commit 6087c38

Browse files
committed
Refactor girder caps and add unit tests
1 parent c845f30 commit 6087c38

4 files changed

Lines changed: 256 additions & 131 deletions

File tree

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ dependencies {
100100
compileOnly("dev.engine-room.flywheel:flywheel-neoforge-api-${minecraft_version}:${flywheel_version}")
101101
runtimeOnly("dev.engine-room.flywheel:flywheel-neoforge-${minecraft_version}:${flywheel_version}")
102102
implementation("com.tterrag.registrate:Registrate:${registrate_version}")
103+
104+
testImplementation(platform("org.junit:junit-bom:5.10.2"))
105+
testImplementation("org.junit.jupiter:junit-jupiter-api")
106+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
103107
}
104108

105109
// This block of code expands all declared replace properties in the specified resource targets.
@@ -145,6 +149,10 @@ tasks.withType(JavaCompile).configureEach {
145149
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
146150
}
147151

152+
tasks.withType(Test).configureEach {
153+
useJUnitPlatform()
154+
}
155+
148156
// IDEA no longer automatically downloads sources/javadoc jars for dependencies, so we need to explicitly enable the behavior.
149157
idea {
150158
module {

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)