Closed fmatosqg closed 6 months ago
Thanks for the report.
This test still passes. The spec generates a build.gradle file that contains this bit:
// buildSrc
import com.autonomousapps.AbstractPostProcessingTask;
import org.gradle.api.tasks.TaskAction;
public abstract class PostTask extends AbstractPostProcessingTask {
@TaskAction public void action() {
System.out.println(projectAdvice());
}
}
// project/build.gradle
def postProcess = tasks.register("postProcess", PostTask)
dependencyAnalysis.registerPostProcessingTask(postProcess)
Without a reproducer, I will be unable to explain why you saw a build error about input
being misconfigured. Still, I am updating the wiki now to reflect the current state of post-processing. Thanks!
Plugin version 1.18.0
Describe the bug Documentation outdated on how to make a custom post processor task.
To Reproduce Follow snippet found on https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/wiki/Post-processing
Steps to reproduce the behavior:
On root build.gradle.kts add
Expected behavior Gradle task to finish, or at least to run the task
Actual behavior
Fix proposed
(1) Specifying
(2) Remove any mentions of
aggregateAdvice
. Is there any task now that is similar?(3)
Replace documentation from
to
This last change is uncertain, since doing it doesn't make the task run with
./gradlew module:projectHealth
, and not doing it issues the following error: