Skip to content

Commit 4a49830

Browse files
committed
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
1 parent 1eae238 commit 4a49830

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ allprojects {
134134
apply plugin: "binary-compatibility-validator"
135135
apiValidation {
136136
ignoredProjects += unpublished + ["kotlinx-coroutines-bom"]
137+
if (build_snapshot_train) {
138+
ignoredProjects.remove("site")
139+
ignoredProjects.remove("example-frontend-js")
140+
}
137141
ignoredPackages += "kotlinx.coroutines.internal"
138142
}
139143

@@ -305,4 +309,4 @@ knit {
305309
moduleRoots = [".", "integration", "reactive", "ui"]
306310
}
307311

308-
knitPrepare.dependsOn getTasksByName("dokka", true)
312+
knitPrepare.dependsOn getTasksByName("dokka", true)

Diff for: settings.gradle

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ def module(String path) {
1111
include(name)
1212
project(":$name").projectDir = file(path)
1313
}
14-
14+
def prop = properties['build_snapshot_train']
15+
ext.build_snapshot_train = prop != null && prop != ""
1516
// ---------------------------
1617

1718
include('benchmarks')
18-
include('site')
1919

2020
include "kotlinx-coroutines-core"
2121

@@ -39,6 +39,9 @@ module('ui/kotlinx-coroutines-javafx')
3939
module('ui/kotlinx-coroutines-swing')
4040

4141
module('js/js-stub')
42-
module('js/example-frontend-js')
42+
if (!build_snapshot_train) {
43+
module('js/example-frontend-js')
44+
include('site')
45+
}
4346

4447
module('publication-validator')

0 commit comments

Comments
 (0)