diff --git a/README.md b/README.md index cddd9829..48b27750 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ And in `build.gradle`: ```gradle plugins { - id "com.google.protobuf" version "0.10.0-SNAPSHOT" + id "com.google.protobuf" version "0.9.5-SNAPSHOT" } ``` diff --git a/build.gradle b/build.gradle index 541d3cba..d5363863 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ plugins { } group = 'com.google.protobuf' -version = '0.10.0-SNAPSHOT' +version = '0.9.5-SNAPSHOT' ext.isReleaseVersion = !version.endsWith("SNAPSHOT") diff --git a/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy b/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy index e27715e2..514900e7 100644 --- a/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy +++ b/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy @@ -84,6 +84,9 @@ abstract class ProtobufExtract extends DefaultTask { @TaskAction public void extract() { + copyActionFacade.delete { spec -> + spec.delete(destDir) + } copyActionFacade.copy { spec -> spec.includeEmptyDirs = false spec.from(inputProtoFiles)