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

This commit is contained in:
Thad House
2017-01-05 14:14:42 -08:00
committed by Peter Johnson
parent 3c3236c5d5
commit e9fcb5381a

View File

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