我正在尝试删除在项目中创建的临时文件。我使用了以下构建文件
apply plugin: 'java'
apply from: 'https://github.com/valkolovos/gradle_cobertura/raw/master/repo/gradle_cobertura/gradle_cobertura/1.0/coberturainit.gradle'
sourceCompatibility = 1.6
dependencies {
testCompile group: 'junit', name: 'junit', version: "4.+"
}
repositories {
mavenCentral()
}
task deleteStuff(type: Delete) {
delete 'testfile.txt'
}
defaultTasks 'cobertura'
但是testfile.txt没有被删除。我错过了什么?