Add the following:
tasks.register('cleanBuildPublish') {
dependsOn 'clean'
dependsOn 'build'
dependsOn 'publish'
tasks.named('build').get().mustRunAfter('clean')
tasks.named('publish').get().mustRunAfter('build')
}
Add the following:
tasks.register('cleanBuildPublish') {
dependsOn 'clean'
dependsOn 'build'
dependsOn 'publish'
tasks.named('build').get().mustRunAfter('clean')
tasks.named('publish').get().mustRunAfter('build')
}