Вопрос

I've got plugin task with name for example name1. And I've got my task task1.

When I execute task name1 I want to execute my task1.

How to achieve this?

Это было полезно?

Решение

Use dependsOn or mustRunAfter. Link to the docs.

Другие советы

Add this in your build.gradle:

name1.dependsOn(task1)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top