[build] Add missing sources to published zip files (#8055)

Gradle publishing does not capture all of the source files that are used during a build. This should get most of them, and get it equivalent to what bazel pushes out.
This commit is contained in:
PJ Reiniger
2025-07-16 00:20:28 -04:00
committed by GitHub
parent 24e2d2d676
commit b85a0d5cf3
7 changed files with 30 additions and 0 deletions

View File

@@ -80,6 +80,9 @@ cppHeadersZip {
from(generatedHeaders) {
into '/'
}
from('src/mrc/include') {
into '/'
}
}
Action<List<String>> symbolFilter = { symbols ->

View File

@@ -48,6 +48,12 @@ cppHeadersZip {
}
}
cppSourcesZip {
from(generatedSources) {
into '/'
}
}
Action<List<String>> symbolFilter = { symbols ->
symbols.removeIf({ !it.startsWith('NT_') })
} as Action<List<String>>;

View File

@@ -23,6 +23,9 @@ task cppSourcesZip(type: Zip) {
from("$buildDir/generated/cpp") {
into '/'
}
from("src/generated/main/native/cpp") {
into '/'
}
}
task cppHeadersZip(type: Zip) {

View File

@@ -21,6 +21,9 @@ task cppSourcesZip(type: Zip) {
from("$buildDir/generated/cpp") {
into '/'
}
from("src/generated/main/native/cpp") {
into '/'
}
}
cppSourcesZip.dependsOn generateCppVersion

View File

@@ -52,6 +52,12 @@ cppHeadersZip {
}
}
cppSourcesZip {
from('src/main/native/thirdparty/sleipnir/src') {
into '/'
}
}
model {
components {
all {

View File

@@ -198,6 +198,12 @@ cppHeadersZip {
}
}
cppSourcesZip {
from('src/main/native/thirdparty/tcpsockets/cpp') {
into '/'
}
}
model {
components {
all {

View File

@@ -193,6 +193,9 @@ cppHeadersZip {
}
cppSourcesZip {
from('src/main/native/thirdparty/debugging/src') {
into '/'
}
from('src/main/native/thirdparty/fmtlib/src') {
into '/'
}