Create Gradle Tasks that executes other gradle task with parameters
问题 I use this gradle command to execute my UI-tests: ./gradlew connectedDebugAndroidTest -PUiTest I want to define a custom gradle task that executes my UI-tests, so I could this: task runUiTests() { dependsOn("connectedDebugAndroidTest") } How can I pass the parameter -PUiTest in my custom gradle task to the connectedDebugAndroidTest task? 来源: https://stackoverflow.com/questions/59284240/create-gradle-tasks-that-executes-other-gradle-task-with-parameters