From 8f9c176d26539ac7ee16c89a9ca0b60b173eb75b Mon Sep 17 00:00:00 2001 From: Simon Schiller Date: Wed, 30 Dec 2020 15:24:51 +0100 Subject: [PATCH] Add switch to allow breaking API changes --- .travis.yml | 2 +- settings.gradle | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7350492..7f3fddc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" >> "$ANDROID_HOME/licenses/android-sdk-license" install: - - ./gradlew :prefiller:publishToMavenLocal --stacktrace + - ./gradlew :prefiller:publishToMavenLocal -PexcludeSample --stacktrace script: - ./gradlew test --stacktrace diff --git a/settings.gradle b/settings.gradle index e4126a6..852c001 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,11 @@ rootProject.name = "prefiller-plugin" include(":prefiller") -include(":sample:kotlin-groovy-dsl") -include(":sample:java-groovy-dsl") -include(":sample:kotlin-kotlin-dsl") -include(":sample:java-kotlin-dsl") + +// Samples can be excluded to publish the plugin when the API changes +if (!hasProperty("excludeSample")) { + include(":sample:kotlin-groovy-dsl") + include(":sample:java-groovy-dsl") + include(":sample:kotlin-kotlin-dsl") + include(":sample:java-kotlin-dsl") +}