문제

Is it possible to create private Gradle task which is not visible on task list (gradlew tasks)?

도움이 되었습니까?

해결책

Gradle doesn't support marking a task as "private". However, gradle tasks will only show a task if it either has task.group set, or no other task depends on it. The idea behind this is that such a task is likely meant to be executed directly by the user. In contrast, gradle tasks --all will show all tasks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top