Gradle custom task which runs multiple tasks

前端 未结 8 929
不知归路
不知归路 2020-12-07 17:16

I wanna run multiple gradle tasks as one. So instead of

./gradlew clean build publish

I want to have a custom task

./gradl         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 18:00

    My approach is

    task cleanBuildPublish (type: GradleBuild, dependsOn: ['clean', 'build', 'publish']) { 
    }
    

    This works for me.

提交回复
热议问题