diff --git a/allure-adapter-plugin/src/main/kotlin/io/qameta/allure/gradle/adapter/AllureAdapterExtension.kt b/allure-adapter-plugin/src/main/kotlin/io/qameta/allure/gradle/adapter/AllureAdapterExtension.kt index ef49a41..54dc1e5 100644 --- a/allure-adapter-plugin/src/main/kotlin/io/qameta/allure/gradle/adapter/AllureAdapterExtension.kt +++ b/allure-adapter-plugin/src/main/kotlin/io/qameta/allure/gradle/adapter/AllureAdapterExtension.kt @@ -98,7 +98,11 @@ open class AllureAdapterExtension @Inject constructor( fun gatherResultsFrom(tasks: TaskCollection) { project.apply() - tasks.names.onEach { exposeArtifact(tasks.named(it)) } + project.afterEvaluate { + tasks.names.forEach { + exposeArtifact(tasks.named(it)) + } + } tasks.configureEach { internalGatherResultsFrom(this) }