Provide a String
The API has been enhanced to allow passing in a String if the value doesn't need to be determined lazily at runtime.
@@ -47,7 +47,7 @@ apply plugin: 'com.bmuschko.docker-remote-api'
import com.bmuschko.gradle.docker.tasks.container.*
task logContainer(type: DockerLogsContainer) {
- targetContainerId { 'container-that-does-exist' }
+ targetContainerId 'container-that-does-exist'
follow = true
tailAll = true
onNext { message ->
@@ -72,7 +72,7 @@ apply plugin: 'com.bmuschko.docker-remote-api'
import com.bmuschko.gradle.docker.tasks.container.*
task removeContainer(type: DockerRemoveContainer) {
- targetContainerId { 'container-that-does-exist' }
+ targetContainerId 'container-that-does-exist'
onComplete {
println 'Executes first'
}
