From 525a350853fd8ceb4008799d07e6d99c41e5becb Mon Sep 17 00:00:00 2001 From: Seth Goings Date: Wed, 20 Aug 2014 16:17:39 -0600 Subject: [PATCH] Enable individual platform/arch builds by watching for platform/arch --- build.gradle | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/build.gradle b/build.gradle index 12dc2ce42d..3d8822efee 100644 --- a/build.gradle +++ b/build.gradle @@ -15,24 +15,31 @@ apply plugin: 'artifactory-publish' model { platforms { - create("linux-x86_64") { - operatingSystem "linux" - architecture "x86_64" - } + if(project.hasProperty("platform") && project.hasProperty("arch")) { + create("${platform}-${arch}") { + operatingSystem "${platform}" + architecture "${arch}" + } + } else { + create("linux-x86_64") { + operatingSystem "linux" + architecture "x86_64" + } - create("linux-i386") { - operatingSystem "linux" - architecture "i386" - } + create("linux-i386") { + operatingSystem "linux" + architecture "i386" + } - create("windows-x86_64") { - operatingSystem "windows" - architecture "x86_64" - } + create("windows-x86_64") { + operatingSystem "windows" + architecture "x86_64" + } - create("windows-i386") { - operatingSystem "windows" - architecture "i386" + create("windows-i386") { + operatingSystem "windows" + architecture "i386" + } } }