File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
build-tools-internal/src/main/groovy Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,14 @@ plugins.withType(InternalJavaRestTestPlugin) {
5353
5454tasks. matching { it. name. equals(" check" ) }. configureEach { dependsOn(bwcTestSnapshots) }
5555tasks. matching { it. name. equals(" test" ) }. configureEach { enabled = false }
56+
57+ tasks. addRule(" incompatible bwc version" ) { taskName ->
58+ def incompatible = buildParams. bwcVersions. allIndexCompatible - buildParams. bwcVersions. indexCompatible
59+ if (incompatible. any { taskName. startsWith(" v${ it.toString()} " ) }) {
60+ tasks. register(taskName) {
61+ doLast {
62+ throw new GradleException (" Cannot execute task '$taskName '. Version is unsupported on this platform. Perhaps you need an x86 host?" )
63+ }
64+ }
65+ }
66+ }
You can’t perform that action at this time.
0 commit comments