Skip to content

Commit

Permalink
Add support for debug artifacts downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Oct 21, 2018
1 parent 063574f commit a9a38b5
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.from task.archivePath
}

def pubVersion = '2019.4.1'
def pubVersion = '2019.4.2'

def baseArtifactId = 'chipobject'
def artifactGroupId = 'edu.wpi.first.ni-libraries'
Expand Down Expand Up @@ -72,6 +72,16 @@ task libZip(type: Zip) {
}
}

task libZipDebug(type: Zip) {
destinationDir = outputsFolder
baseName = zipBaseName
classifier = "linuxathenadebug"

from('src/lib/chipobject') {
into '/linux/athena/shared/'
}
}

task headersZip(type: Zip) {
destinationDir = outputsFolder
baseName = zipBaseName
Expand All @@ -92,6 +102,16 @@ task netCommLib(type: Zip) {
}
}

task netCommLibDebug(type: Zip) {
destinationDir = outputsFolder
baseName = netcommZipBaseName
classifier = "linuxathenadebug"

from('src/lib/netcomm') {
into '/linux/athena/shared/'
}
}

task netCommHeaders(type: Zip) {
destinationDir = outputsFolder
baseName = netcommZipBaseName
Expand All @@ -106,17 +126,22 @@ build.dependsOn netCommLib
build.dependsOn headersZip
build.dependsOn netCommHeaders
build.dependsOn libZip
build.dependsOn libZipDebug
build.dependsOn netCommLibDebug

addTaskToCopyAllOutputs(netCommLib)
addTaskToCopyAllOutputs(headersZip)
addTaskToCopyAllOutputs(libZip)
addTaskToCopyAllOutputs(netCommHeaders)
addTaskToCopyAllOutputs(libZipDebug)
addTaskToCopyAllOutputs(netCommLibDebug)

publishing {
publications {
chipobject(MavenPublication) {
artifact libZip
artifact headersZip
artifact libZipDebug

artifactId = "${baseArtifactId}"
groupId artifactGroupId
Expand All @@ -125,6 +150,7 @@ publishing {
netcomm(MavenPublication) {
artifact netCommLib
artifact netCommHeaders
artifact netCommLibDebug

artifactId = "${netcommBaseArtifactId}"
groupId artifactGroupId
Expand Down

0 comments on commit a9a38b5

Please sign in to comment.