In sbt, if I use mapR in the compile task, I can get an Analysis object that will allow me to collect warnings and other information. This allows you to programmatically monitor alert statistics for specific projects.
However, I have many subprojects aggregated in the root project using the sbt aggregation function. Is there an idiomatic way of aggregating this information (or arbitrary information) up the aggregation tree like this? For example, if I wanted to know the total number of warnings in the entire assembly, how can I do this? I can maintain the global Scala state in my sbt project and add AtomicInteger to AtomicInteger after each step of the project, but it seems ugly and I feel that there should be a better way.
In the context, I want to tell TeamCity the total number of warnings in the assembly, so I need to be able to collect information like this.
source share