Если проект не содержит никаких миксинов (не проверил: либо не содержит миксины требующие ремап), то во время чистой сборки все упадет на таске reobf
с исключением "не могу найти файл рефмап.srg". Если же миксины есть, то сборка будет падать до тех пор, пока она не будет запущена с параметром --rerun-tasks
.
Воспроизведение:
- Проект с миксинами.
./gradlew clean build
// Если добавить --rerun-tasks
, билд пройдет удачно.
Либо:
- Проект без миксинов.
./gradlew clean build
// Тут и --rerun-tasks
не поможет.
Вот как все это выглядит билд на примере моего проекта:
Удачный билд - ./gradlew clean build --rerun-tasks
Неудачный билд - ./gradlew clean build
Скорее всего, файл просто не создается в случае, когда нет миксинов или нет необходимости что-то рефмарить. Но этот файл всегда применяется к reobf
таску, из-за чего он падает при попытке его прочесть.
Как вариант решения (проблема походу на стороне миксинов, а не твоей обертки) - создание пустого файла-заглушки, чтобы таск не падал. Он ничего не сломает и будет перезаписан в случае появления валидного. Но это не решает проблему с --rerun-tasks
.
Разобрался зачем просится --rerun-tasks
: compileJava
, где создается рефмап, скипается даже после clean
.