``` val buildDockerImage by creati...
# gradle
j
Copy code
val buildDockerImage by creating(Exec::class) {
                    commandLine("docker", "build", "-t", ${someExtension.somePropertyState},, dockerDirectory)
                    doLast{println("executed $commandLine")}
                }
I’m trying to figure out how to lazily set an argument in this exec task from a propertystate, but it’s evaluating too early. Am I missing something? 1 reply You may find this plugin more useful. I had a PR merged a few months ago that optimizes the API for this plugin so that it can be used nicely with the Gradle Kotlin DSL: https://github.com/bmuschko/gradle-docker-plugin Not quite what you were looking for but this may help.