Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

Integration test error: Execution failed for task ':distDocker'. "Could not find property 'jar' on task ':docker' #113

Closed jorgeluengo closed 7 years ago

jorgeluengo commented 7 years ago

image

I have run

./gradlwe build

and it fails with these errors.

Also, I tried to go to the example/simple folder and run the following command:

./gradlew docker

But it fails too, providing this message "Could not find property 'jar' on task ':docker'

bjornmagnusson commented 7 years ago

I cannot see any faults with this when running locally.

Can you provide some more info on your environment and stack Trace/info mode on gradle build?

jorgeluengo commented 7 years ago

I have downloaded the source code in a zip file. I have decompressed it and I have run ./gradlew build .Then, the errors appeared. This is the information you requested:

openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.10.2-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

Any idea?

bjornmagnusson commented 7 years ago

yes, by using the zip download I managed to reproduce your error. This created an folder called gradle-docker-master. This has one big problem, the artifact published to maven local will then be called gradle-docker-master instead of gradle-docker as it is supposed to be named.

If you download the zip, it seems you must make sure the unpacked folder is called gradle-docker. In that case it worked for me.

Could you try this?

jorgeluengo commented 7 years ago

I have tried this and you are right. If I rename the folder to gradle-docker it works. Thank you very much!