Give each verification task an output for better incremental building
This commit is contained in:
parent
365d17bf32
commit
75270b18ca
|
@ -18,8 +18,12 @@ task downloadJLex(type: Download) {
|
|||
}
|
||||
|
||||
task verifyJLex(type: Verify, dependsOn: downloadJLex) {
|
||||
// TODO: refactor this logic into a reusable custom task class
|
||||
src downloadJLex.dest
|
||||
checksum 'fe0cff5db3e2f0f5d67a153cf6c783af'
|
||||
def stamp = new File(temporaryDir, 'stamp')
|
||||
outputs.file stamp
|
||||
doLast { stamp.text = '' }
|
||||
}
|
||||
|
||||
clean {
|
||||
|
|
|
@ -13,8 +13,12 @@ task downloadAjaxslt(type: Download) {
|
|||
}
|
||||
|
||||
task verifyAjaxslt(type: Verify, dependsOn: downloadAjaxslt) {
|
||||
// TODO: refactor this logic into a reusable custom task class
|
||||
src files(downloadAjaxslt)[0]
|
||||
checksum 'c995abe3310a401bb4db7f28a6409756'
|
||||
def stamp = new File(temporaryDir, 'stamp')
|
||||
outputs.file stamp
|
||||
doLast { stamp.text = '' }
|
||||
}
|
||||
|
||||
task unpackAjaxslt(type: Sync, dependsOn: verifyAjaxslt) {
|
||||
|
|
|
@ -28,8 +28,12 @@ task downloadBcel(type: Download) {
|
|||
}
|
||||
|
||||
task verifyBcel(type: Verify, dependsOn: downloadBcel) {
|
||||
// TODO: refactor this logic into a reusable custom task class
|
||||
src files(downloadBcel)[0]
|
||||
checksum '19bffd7f217b0eae415f1ef87af2f0bc'
|
||||
def stamp = new File(temporaryDir, 'stamp')
|
||||
outputs.file stamp
|
||||
doLast { stamp.text = '' }
|
||||
}
|
||||
|
||||
task extractBcel(type: Sync, dependsOn: verifyBcel) {
|
||||
|
@ -60,8 +64,12 @@ task downloadJavaCup(type: Download) {
|
|||
}
|
||||
|
||||
task verifyJavaCup(type: Verify, dependsOn: downloadJavaCup) {
|
||||
// TODO: refactor this logic into a reusable custom task class
|
||||
src files(downloadJavaCup)[0]
|
||||
checksum '2bda8c40abd0cbc295d3038643d6e4ec'
|
||||
def stamp = new File(temporaryDir, 'stamp')
|
||||
outputs.file stamp
|
||||
doLast { stamp.text = '' }
|
||||
}
|
||||
|
||||
extraBundledJars.dependsOn verifyJavaCup
|
||||
|
@ -99,8 +107,12 @@ task downloadOcamlJava(type: Download) {
|
|||
}
|
||||
|
||||
task verifyOcamlJava(type: Verify, dependsOn: downloadOcamlJava) {
|
||||
// TODO: refactor this logic into a reusable custom task class
|
||||
src downloadOcamlJava.outputFiles[0]
|
||||
checksum '45feec6e3889f5073a39c2c4c84878d1'
|
||||
def stamp = new File(temporaryDir, 'stamp')
|
||||
outputs.file stamp
|
||||
doLast { stamp.text = '' }
|
||||
}
|
||||
|
||||
task unpackOcamlJava(type: Sync, dependsOn: verifyOcamlJava) {
|
||||
|
|
Loading…
Reference in New Issue