From 4a4983014a172cd7b1c61bd298607530ffa5c2a9 Mon Sep 17 00:00:00 2001 From: Vsevolod Tolstopyatov Date: Tue, 10 Mar 2020 19:58:36 +0300 Subject: [PATCH] Conditionally disable :example-frontend-js for snapshot train It doesn't work properly with new JS IR BE because it depends on a really old plugin version --- build.gradle | 6 +++++- settings.gradle | 9 ++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index b6d0483afe..87aac2a1e0 100644 --- a/build.gradle +++ b/build.gradle @@ -134,6 +134,10 @@ allprojects { apply plugin: "binary-compatibility-validator" apiValidation { ignoredProjects += unpublished + ["kotlinx-coroutines-bom"] + if (build_snapshot_train) { + ignoredProjects.remove("site") + ignoredProjects.remove("example-frontend-js") + } ignoredPackages += "kotlinx.coroutines.internal" } @@ -305,4 +309,4 @@ knit { moduleRoots = [".", "integration", "reactive", "ui"] } -knitPrepare.dependsOn getTasksByName("dokka", true) \ No newline at end of file +knitPrepare.dependsOn getTasksByName("dokka", true) diff --git a/settings.gradle b/settings.gradle index 15d377d3f9..7e4fc0cad1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,11 +11,11 @@ def module(String path) { include(name) project(":$name").projectDir = file(path) } - +def prop = properties['build_snapshot_train'] +ext.build_snapshot_train = prop != null && prop != "" // --------------------------- include('benchmarks') -include('site') include "kotlinx-coroutines-core" @@ -39,6 +39,9 @@ module('ui/kotlinx-coroutines-javafx') module('ui/kotlinx-coroutines-swing') module('js/js-stub') -module('js/example-frontend-js') +if (!build_snapshot_train) { + module('js/example-frontend-js') + include('site') +} module('publication-validator')