From 4e305a5ec76957a369204d65453e1a763440c9f1 Mon Sep 17 00:00:00 2001 From: Thad House Date: Tue, 22 May 2018 14:36:28 -0700 Subject: [PATCH] Fixed dependencys getting added to unbuildable binaries --- .../wpi/first/nativeutils/rules/DependencyConfigRules.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/groovy/edu/wpi/first/nativeutils/rules/DependencyConfigRules.groovy b/src/main/groovy/edu/wpi/first/nativeutils/rules/DependencyConfigRules.groovy index d5cedb71..b86d00a7 100644 --- a/src/main/groovy/edu/wpi/first/nativeutils/rules/DependencyConfigRules.groovy +++ b/src/main/groovy/edu/wpi/first/nativeutils/rules/DependencyConfigRules.groovy @@ -160,6 +160,9 @@ class DependencyConfigRules extends RuleSource { def nativeBinaries = binaries.findAll { BuildConfigRulesBase.isNativeProject((BinarySpec) it) } nativeBinaries.each { oBinary -> def binary = (NativeBinarySpec) oBinary + if (!binary.buildable) { + return + } def component = binary.component def headerConfigurationName = "${config.groupId}${config.artifactId}${config.headerClassifier}".toString()