В моей папке сборки есть файл с информацией о проблемах с зависимостями.
Я хочу подсчитать количество строк в отчете (файле) проблем с зависимостями
У меня есть следующий псевдокод:
dependencyCheckAnalyze.doLast {
// check if there are bad dependencies
if ('build/reports/dependency-check-report.csv'.linecount > 1) {
// line 1 is the title (ie. all dependency problems comes on next lines)
// do stuff regarding dependency issues
}
}