Skip to content

Commit 4e305a5

Browse files
committed
Fixed dependencys getting added to unbuildable binaries
1 parent 24d6e32 commit 4e305a5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/groovy/edu/wpi/first/nativeutils/rules/DependencyConfigRules.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ class DependencyConfigRules extends RuleSource {
160160
def nativeBinaries = binaries.findAll { BuildConfigRulesBase.isNativeProject((BinarySpec) it) }
161161
nativeBinaries.each { oBinary ->
162162
def binary = (NativeBinarySpec) oBinary
163+
if (!binary.buildable) {
164+
return
165+
}
163166
def component = binary.component
164167

165168
def headerConfigurationName = "${config.groupId}${config.artifactId}${config.headerClassifier}".toString()

0 commit comments

Comments
 (0)