How to add new configuration with Gradle Kotlin-dsl

Could you please try:

val explode by configurations.creating

or:

val explode = configurations.create("explode")

The following build.gradle.kts script works fine:

repositories {
    mavenCentral()
}

val explode by configurations.creating

dependencies {
    explode("org.apache.samza:samza-shell:0.13.1")
}