I’m trying to construct a simple proof-of-concept gradle framework for a project. Whenever I try to execute a task multiple times in a row without editing the build.gradle, I get an UP-TO-DATE message, and the task is skipped. According to the documentation at http://www.gradle.org/docs/current/userguide/more_about_tasks.html#sec:up_to_date_checks: “A task with no defined outputs will never be considered up-to-date.”
Am I doing something wrong? How do I force gradle to always execute a task no matter what? Thanks in advance
build.gradle
version = "gradle_test_1.0.0"
task dist(type: Zip) {
classifier = project.version + "_bin"
from System.getProperty("user.dir")
include 'bin/*'
}
Command line used
gradle -b subdir/build.gradle dist
output of “gradle -v”:
------------------------------------------------------------ Gradle 1.12 ------------------------------------------------------------Build time:
2014-04-29 09:24:31 UTC Build number: none Revision:
a831fa866d46cbee94e61a09af15f9dd95987421
Groovy:
1.8.6 Ant:
Apache Ant™ version 1.9.3 compiled on December 23 2013 Ivy:
2.2.0 JVM:
1.7.0_51 (Oracle Corporation 24.45-b08) OS:
Linux 3.11.0-19-generic amd64