From d1bdd823531c1398e2c8daf306fa191daed42cdb Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 2 Jul 2018 16:23:50 -0700 Subject: [PATCH] Added more tasks for all examples. --- examples/build.gradle | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/examples/build.gradle b/examples/build.gradle index c859a6c..1e3ca7e 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,7 +1,36 @@ task clean(type: Delete) { - doFirst { - delete fileTree(".") { - include "*.properties" - } - } + doFirst { + delete fileTree(".") { + include "*.properties" + } + } +} + +task incrementPatch { + dependsOn( + "java:clean", "java:incrementPatch", + "kotlin:clean", "kotlin:incrementPatch", + "annotation-processor:java:clean", "annotation-processor:java:incrementPatch", + "annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementPatch") +} + +task incrementMinor { + dependsOn( + "java:clean", "java:incrementMinor", + "kotlin:clean", "kotlin:incrementMinor", + "annotation-processor:java:clean", "annotation-processor:java:incrementMinor", + "annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementMinor") +} + +task incrementMajor { + dependsOn( + "java:clean", "java:incrementMajor", + "kotlin:clean", "kotlin:incrementMajor", + "annotation-processor:java:clean", "annotation-processor:java:incrementMajor", + "annotation-processor:kotlin:clean", "annotation-processor:kotlin:incrementMajor") +} + +task run { + dependsOn( + "java:run", "kotlin:run", "annotation-processor:java:run", "annotation-processor:kotlin:run") } \ No newline at end of file