diff --git a/theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.beam.gradle b/theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.beam.gradle
index 20823e39c05803478813f50e910eca0182886e40..09e36d52171699c61b212b1f64c827933679b6fa 100644
--- a/theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.beam.gradle
+++ b/theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.beam.gradle
@@ -36,9 +36,9 @@ dependencies {
     }
     implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
 
-    runtime "org.apache.beam:beam-runners-direct-java:${apacheBeamVersion}"
-    runtime 'org.slf4j:slf4j-api:1.7.32'
-    runtime 'org.slf4j:slf4j-jdk14:1.7.32'
+    runtimeOnly "org.apache.beam:beam-runners-direct-java:${apacheBeamVersion}"
+    runtimeOnly 'org.slf4j:slf4j-api:1.7.32'
+    runtimeOnly 'org.slf4j:slf4j-jdk14:1.7.32'
 
     // Use JUnit test framework
     testImplementation 'junit:junit:4.12'