Skip to content
Snippets Groups Projects
Commit 281a5df4 authored by dgelessus's avatar dgelessus
Browse files

Don't use cleanKernelSpec task to delete outputs in createKernelSpec

This breaks Gradle's up-to-date check for the task, because the output
is always deleted before the task has a chance to execute.
parent fc71c0c5
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ task cleanKernelSpec(type: Delete) {
clean.dependsOn << cleanKernelSpec
task createKernelSpec(type: JavaExec) {
dependsOn = [cleanKernelSpec, shadowJar]
dependsOn = [shadowJar]
main = project.mainClassName
args = ["createKernelSpec", KERNEL_SPEC_OUTPUT_PATH.toString()]
classpath(shadowJar.archiveFile)
......@@ -86,6 +86,7 @@ task createKernelSpec(type: JavaExec) {
}
outputs.dir(KERNEL_SPEC_OUTPUT_PATH.toFile())
doFirst {
delete(KERNEL_SPEC_OUTPUT_PATH)
mkdir(KERNEL_SPEC_OUTPUT_PATH)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment