Hi,
I have a task like this:
task buildDocker(type: Docker, dependsOn: build) {
push = false
applicationName = jar.baseName
dockerfile = file('./docs/docker/Dockerfile')
doFirst {
copy {
from 'build/libs/myapp.jar'
to 'docs/docker'
}
}
}
I get this error when I do a gradle buildDocker
Execution failed for task ':buildDocker'.
> No signature of method: org.gradle.api.internal.file.copy.CopySpecWrapper_Decorated.to() is applicable for argument types: (java.lang.String) values: [docs/docker]
Possible solutions: into(java.lang.Object), is(java.lang.Object), any(), from([Ljava.lang.Object;), into(java.lang.Object, groovy.lang.Closure), with([Lorg.gradle.api.file.CopySpec;)