Charlie Tapping
04/29/2024, 9:53 PMproject.tasks.register<PrepareTestSuite>(
TASK_NAME_PREPARE_SUITE,
).apply {
configure {
description = TASK_DESCRIPTION_PREPARE_SUITE
group = GROUP
inputFiles.apply {
from(syncRepositoryTask.flatMap { it.outputDirectory })
include("**/*.wast")
exclude("**/proposals/**")
exclude(extension.excludes.get())
}
wast2Json.set(resolveWast2JsonTask.flatMap { it.outputFile })
outputDirectory.set(extension.testSuiteGenDirectory)
}
}
Vampire
04/30/2024, 1:21 PMtasks.register(...) { task configuration here }
But anyway, the answer to your question maybe is the flatMap
. It loses task dependency and replace by the inner provider. So it depends on how the outputDirectory
is defined. If it is an @OutputDirectory
it should have the task dependency itself and it should probably work. But hard to say without a complete MCVE.Charlie Tapping
04/30/2024, 1:33 PMVampire
04/30/2024, 1:34 PMVampire
04/30/2024, 1:34 PMCharlie Tapping
04/30/2024, 2:01 PMCharlie Tapping
04/30/2024, 2:02 PM@get:OutputDirectory
abstract val outputDirectory: DirectoryProperty
This is why I thought it would work, but settings builtby fixes it for nowVampire
04/30/2024, 2:30 PM