dependencies {
implementation "org.codehaus.groovy:groovy-all:2.5.1"
// etc
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.2.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.2.0'
// ...
The tests are now found by Eclipse and work. I'm not sure why, given that JUnit 5 is supposed to be built-in, but there you are.