Gradle task should not execute automatically

后端 未结 3 532
滥情空心
滥情空心 2020-11-30 08:44

I\'m defining a task in gradle:

task releaseCandidate(type: Exec) {
    commandLine \'git\', \'checkout\', \'develop\'

    // Increment version code in Mani         


        
3条回答
  •  天命终不由人
    2020-11-30 09:24

    Just to complete @Opal answer for cases when Exec is really used (for example CommandLine reference) :

    task task1 << {
       exec {
            List arguments = new ArrayList()
            //..
            commandLine arguments
       }
    }
    

提交回复
热议问题