mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
SEC-3057: Include all *.txt & *.jar in dist zip
This commit is contained in:
parent
43fbeab106
commit
45bbabd485
11
build.gradle
11
build.gradle
@ -135,7 +135,7 @@ task coreBuild {
|
|||||||
// Task for creating the distro zip
|
// Task for creating the distro zip
|
||||||
|
|
||||||
task dist(type: Zip) {
|
task dist(type: Zip) {
|
||||||
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' || task.name.endsWith('Zip') || task.name.endsWith('generatePom') }
|
dependsOn { subprojects*.tasks*.matching { task -> task.name.endsWith('generatePom') } }
|
||||||
classifier = 'dist'
|
classifier = 'dist'
|
||||||
|
|
||||||
evaluationDependsOn(':docs')
|
evaluationDependsOn(':docs')
|
||||||
@ -145,14 +145,19 @@ task dist(type: Zip) {
|
|||||||
into(zipRootDir) {
|
into(zipRootDir) {
|
||||||
from(rootDir) {
|
from(rootDir) {
|
||||||
include '*.adoc'
|
include '*.adoc'
|
||||||
|
include '*.txt'
|
||||||
}
|
}
|
||||||
into('docs') {
|
into('docs') {
|
||||||
with(project(':docs').apiSpec)
|
with(project(':docs').apiSpec)
|
||||||
with(project(':docs:manual').spec)
|
with(project(':docs:manual').spec)
|
||||||
with(project(':docs:guides').spec)
|
with(project(':docs:guides').spec)
|
||||||
}
|
}
|
||||||
into('dist') {
|
project.coreModuleProjects*.tasks*.withType(AbstractArchiveTask).flatten().each{ archiveTask ->
|
||||||
from coreModuleProjects.collect {project -> project.libsDir }
|
if(archiveTask!=dist){
|
||||||
|
into("$zipRootDir/dist") {
|
||||||
|
from archiveTask.outputs.files
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sampleProjects.each { project->
|
sampleProjects.each { project->
|
||||||
into("$zipRootDir/samples/$project.name") {
|
into("$zipRootDir/samples/$project.name") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user