Skip to content

Commit

Permalink
编译前要删除以前生成的文件
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix committed Mar 18, 2016
1 parent ae727e4 commit dca0961
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,20 @@ tasks.withType(Javadoc) {

task cleanAll << {
println "Clean project.."
delete buildDir
delete "${buildDir}/classes"
delete "${buildDir}/resources"
}

task init << {
println '+---------------------------------------------------+'
println '| |'
println "| B U I L D I N G $project.name $version ... "
println '| |'
println '+---------------------------------------------------+'
}

compileJava.dependsOn([init,cleanAll])

jar {
manifest {
attributes("Specification-Title": moduleName, "Specification-Version": version)
Expand Down

0 comments on commit dca0961

Please sign in to comment.