Currently the UP-TO-DATE check fails unnecessarily due to the fact that baseDir is set as the project root which means the gradle cache at .gradle is being considered as an input. An example of the output when determining if the task is up to date is:
$ ./gradlew asciidoc --info
:asciidoctor
In-memory cache of taskArtifacts.bin: Size{2}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
In-memory cache of outputFileStates.bin: Size{1}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
In-memory cache of fileHashes.bin: Size{26}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
Executing task ':asciidoctor' (up-to-date check took 0.006 secs) due to:
Input file /Users/rwinch/code/asciidoctor-gradle-plugin-sample/.gradle/1.9/taskArtifacts/fileHashes.bin has changed.
Input file /Users/rwinch/code/asciidoctor-gradle-plugin-sample/.gradle/1.9/taskArtifacts/fileSnapshots.bin has changed.
Input file /Users/rwinch/code/asciidoctor-gradle-plugin-sample/.gradle/1.9/taskArtifacts/taskArtifacts.bin has changed.
In-memory cache of fileSnapshots.bin: Size{12}, CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
:asciidoctor (Thread[Daemon Thread 7,5,main]) completed. Took 3.274 secs.