GP-0: A few buildExtenion.gradle tweaks

* Excluding .vscode/ from the distro
* Only including src/main/java in lib/*-src.zip
This commit is contained in:
Ryan Kurtz 2025-04-02 11:39:13 -04:00
parent 7f889d7812
commit 7c1285d48d

View file

@ -83,11 +83,12 @@ task zipSource (type: Zip) {
it.archiveBaseName = project.name + "-src" it.archiveBaseName = project.name + "-src"
it.archiveExtension = 'zip' it.archiveExtension = 'zip'
it.destinationDirectory = file(project.projectDir.path + "/build/tmp/src") it.destinationDirectory = file(project.projectDir.path + "/build/tmp/src")
it.includeEmptyDirs = false
// We MUST copy from a directory, and not just grab a list of source files. // We MUST copy from a directory, and not just grab a list of source files.
// This is the only way to preserve the directory structure. // This is the only way to preserve the directory structure.
it.from project.projectDir it.from project.projectDir
it.include 'src/**/*' it.include 'src/main/java/'
} }
task buildExtension (type: Zip) { task buildExtension (type: Zip) {
@ -125,6 +126,7 @@ task buildExtension (type: Zip) {
exclude 'bin/**' exclude 'bin/**'
exclude 'src/**' exclude 'src/**'
exclude '.gradle/**' exclude '.gradle/**'
exclude '.vscode/**'
exclude '.classpath' exclude '.classpath'
exclude '.project' exclude '.project'
exclude '.pydevproject' exclude '.pydevproject'