Skip to content

Commit a9a38b5

Browse files
committed
Add support for debug artifacts downstream
1 parent 063574f commit a9a38b5

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

build.gradle

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ext.addTaskToCopyAllOutputs = { task ->
2929
copyAllOutputs.from task.archivePath
3030
}
3131

32-
def pubVersion = '2019.4.1'
32+
def pubVersion = '2019.4.2'
3333

3434
def baseArtifactId = 'chipobject'
3535
def artifactGroupId = 'edu.wpi.first.ni-libraries'
@@ -72,6 +72,16 @@ task libZip(type: Zip) {
7272
}
7373
}
7474

75+
task libZipDebug(type: Zip) {
76+
destinationDir = outputsFolder
77+
baseName = zipBaseName
78+
classifier = "linuxathenadebug"
79+
80+
from('src/lib/chipobject') {
81+
into '/linux/athena/shared/'
82+
}
83+
}
84+
7585
task headersZip(type: Zip) {
7686
destinationDir = outputsFolder
7787
baseName = zipBaseName
@@ -92,6 +102,16 @@ task netCommLib(type: Zip) {
92102
}
93103
}
94104

105+
task netCommLibDebug(type: Zip) {
106+
destinationDir = outputsFolder
107+
baseName = netcommZipBaseName
108+
classifier = "linuxathenadebug"
109+
110+
from('src/lib/netcomm') {
111+
into '/linux/athena/shared/'
112+
}
113+
}
114+
95115
task netCommHeaders(type: Zip) {
96116
destinationDir = outputsFolder
97117
baseName = netcommZipBaseName
@@ -106,17 +126,22 @@ build.dependsOn netCommLib
106126
build.dependsOn headersZip
107127
build.dependsOn netCommHeaders
108128
build.dependsOn libZip
129+
build.dependsOn libZipDebug
130+
build.dependsOn netCommLibDebug
109131

110132
addTaskToCopyAllOutputs(netCommLib)
111133
addTaskToCopyAllOutputs(headersZip)
112134
addTaskToCopyAllOutputs(libZip)
113135
addTaskToCopyAllOutputs(netCommHeaders)
136+
addTaskToCopyAllOutputs(libZipDebug)
137+
addTaskToCopyAllOutputs(netCommLibDebug)
114138

115139
publishing {
116140
publications {
117141
chipobject(MavenPublication) {
118142
artifact libZip
119143
artifact headersZip
144+
artifact libZipDebug
120145

121146
artifactId = "${baseArtifactId}"
122147
groupId artifactGroupId
@@ -125,6 +150,7 @@ publishing {
125150
netcomm(MavenPublication) {
126151
artifact netCommLib
127152
artifact netCommHeaders
153+
artifact netCommLibDebug
128154

129155
artifactId = "${netcommBaseArtifactId}"
130156
groupId artifactGroupId

0 commit comments

Comments
 (0)