task compile << {
println 'compiling source'
}
task compileTest(dependsOn: compile) << {
println 'compiling unit tests'
}
task dist(dependsOn: [compile]) << {
println 'building the distribution'
}
task test(dependsOn: [compile, compileTest,dist]) << {
println 'running unit tests'
}
- gradle dist -x test 의 실행 결과
> gradle dist -x test :compile compiling source :dist building the distribution BUILD SUCCESSFUL Total time: 1 secs
원본 출처 : https://docs.gradle.org/current/userguide/tutorial_gradle_command_line.html
댓글 없음 :
댓글 쓰기