Combine steps for tasks "jenkins" and "jenkinsLite" in one place

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-08-09 07:22:30 +00:00
parent 2e8afc0c01
commit e25c467209
1 changed files with 18 additions and 17 deletions

View File

@ -444,18 +444,6 @@ subprojects {
targetCompatibility = (JavaVersion.VERSION_17.isCompatibleWith(JavaVersion.current()) ? JavaVersion.current() : JavaVersion.VERSION_17)
}
task jenkins
jenkins.dependsOn build
jenkins.dependsOn check
jenkins.dependsOn javadoc
jenkins.dependsOn jacocoTestReport
jenkins.dependsOn rat
jenkins.dependsOn getDeps
task jenkinsLite
jenkins.dependsOn build
jenkins.dependsOn test
publishing {
publications {
POI(MavenPublication) {
@ -609,11 +597,6 @@ task allJavaDoc(type: Javadoc) {
// options.group('Examples', 'org.apache.poi.examples*')
}
task jenkins(dependsOn: ['replaceVersion', subprojects.build, 'srcDistZip', 'srcDistTar']) {}
task jenkinsLite(dependsOn: ['replaceVersion', subprojects.build]) {}
clean {
delete "${rootDir}/build/dist"
}
@ -673,6 +656,24 @@ rat {
verbose.set(true)
}
task jenkins(dependsOn: [
'replaceVersion',
subprojects.build,
subprojects.check,
subprojects.javadoc,
subprojects.jacocoTestReport,
subprojects.getDeps,
'srcDistZip',
'srcDistTar',
rat
]) {}
task jenkinsLite(dependsOn: [
'replaceVersion',
subprojects.build,
subprojects.test
]) {}
/*task downloadJarsToLibs() {
def f = new File("$projectDir/../lib/ooxml/xmlbeans-5.0.0.jar")
if (!f.exists()) {