From a34f5c3cc86f71ba4264781a9629c3bea824a19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergej=20Ko=C5=A1=C4=8Dejev?= Date: Thu, 1 Aug 2024 17:39:34 +0200 Subject: [PATCH] Add the ability to force platform build Useful for pull requests where we want to build everything to check. --- build/com.mbeddr/languages/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/com.mbeddr/languages/build.gradle b/build/com.mbeddr/languages/build.gradle index 7827890abd6..073f518dddd 100755 --- a/build/com.mbeddr/languages/build.gradle +++ b/build/com.mbeddr/languages/build.gradle @@ -71,8 +71,10 @@ ant.taskdef(name: 'junitreport', classname: 'org.apache.tools.ant.taskdefs.optio def mbeddrDependencies +def usePrebuiltPlatform = ciBuild && !project.hasProperty('forceBuildPlatform') + //on teamcity we don't build the platform we take it from the nexus. Locally we want to build it -if (ciBuild) { +if (usePrebuiltPlatform) { mbeddrDependencies = [copy_spawner, resolve_mbeddr_platform] } else { mbeddrDependencies = [copy_spawner, ':build:com.mbeddr:platform:build_platform']