Fixes Java artifact clasifiers when using custom suffix (#183)

This commit is contained in:
Thad House
2017-01-05 14:13:57 -08:00
committed by Peter Johnson
parent ac56b0a33e
commit 3e2631f49b

View File

@@ -24,7 +24,12 @@ sourceSets {
jar {
description = 'Generates NetworkTables jar, with the JNI shared libraries embedded'
baseName = 'ntcore'
classifier = "$buildPlatform"
if (project.isArm && project.hasProperty('compilerPrefix')
&& project.hasProperty('armSuffix')) {
classifier = "${buildPlatform}${project.armSuffix}"
} else {
classifier = "${buildPlatform}"
}
duplicatesStrategy = 'exclude'
dependsOn { classes }