]> source.dussan.org Git - poi.git/commitdiff
Combine steps for tasks "jenkins" and "jenkinsLite" in one place
authorDominik Stadler <centic@apache.org>
Wed, 9 Aug 2023 07:22:30 +0000 (07:22 +0000)
committerDominik Stadler <centic@apache.org>
Wed, 9 Aug 2023 07:22:30 +0000 (07:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911564 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index 846aa5a725ae5a59f18ecc5454ad2b66bebe9784..7a61ddf312370d6df93dfe0814eab1c867b74634 100644 (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()) {