@@ -222,20 +222,29 @@ task(generateOffloadManifest, type: Copy) {
222222 rename { " offload-manifest.json" }
223223}
224224
225+ def configureOffloadSmokeInputs = { Test testTask ->
226+ testTask. dependsOn(buildOffloadTasksJar, generateOffloadManifest)
227+ testTask. doFirst {
228+ testTask. systemProperty " repulsor.offload.test.taskJar" , project(" :offload-tasks" ). tasks. named(" jar" ). get(). archiveFile. get(). asFile. absolutePath
229+ testTask. systemProperty " repulsor.offload.test.manifest" , layout. buildDirectory. file(" offload/offload-manifest.json" ). get(). asFile. absolutePath
230+ }
231+ }
232+
225233task(localOffloadSmokeTest, type : Test ) {
226234 group = " offload"
227235 description = " Run local end-to-end offload smoke test against a real offload server."
228- dependsOn(buildOffloadTasksJar, generateOffloadManifest)
229236 useJUnitPlatform()
230237 testClassesDirs = sourceSets. test. output. classesDirs
231238 classpath = sourceSets. test. runtimeClasspath
232239 filter {
233240 includeTestsMatching " org.curtinfrc.frc2026.util.Repulsor.Offload.LocalOffloadSmokeTest"
234241 }
235- doFirst {
236- systemProperty " repulsor.offload.test.taskJar" , project(" :offload-tasks" ). tasks. named(" jar" ). get(). archiveFile. get(). asFile. absolutePath
237- systemProperty " repulsor.offload.test.manifest" , layout. buildDirectory. file(" offload/offload-manifest.json" ). get(). asFile. absolutePath
238- }
242+ }
243+ tasks. named(" test" , Test ) {
244+ configureOffloadSmokeInputs(it)
245+ }
246+ tasks. named(" localOffloadSmokeTest" , Test ) {
247+ configureOffloadSmokeInputs(it)
239248}
240249
241250def requestedTasks = gradle. startParameter. taskNames
0 commit comments