= Demo
:junitPlatformVersion: 1.2.3

This works, but is not ideal

[source,kotlin,subs="attributes"]
.build.gradle.kts
----
buildscript {
    dependencies {
        classpath("org.junit.platform:junit-platform-gradle-plugin:{junitPlatformVersion}")
    }
}

configure&lt;JUnitPlatformExtension&gt; {
    filters {
        engines {
            include("spek")
        }
    }
}
----

This also works, but disallows use of attributes

[source,kotlin]
.build.gradle.kts
----
buildscript {
    dependencies {
        classpath("org.junit.platform:junit-platform-gradle-plugin:1.2.3")
    }
}

configure<JUnitPlatformExtension> {
    filters {
        engines {
            include("spek")
        }
    }
}
----

This is what one would like to do, but doesn't work

[source,kotlin,subs="attributes"]
.build.gradle.kts
----
buildscript {
    dependencies {
        classpath("org.junit.platform:junit-platform-gradle-plugin:{junitPlatformVersion}")
    }
}

configure<JUnitPlatformExtension> {
    filters {
        engines {
            include("spek")
        }
    }
}
----
