aboutsummaryrefslogtreecommitdiffstats
path: root/poi/build.gradle
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-08-28 23:48:48 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-08-28 23:48:48 +0000
commitf71cebcce5ed809ee15cd69524f8cb0b0b2ea47c (patch)
tree4f9f798ae3acd7a3e50a675becbe85055d1beff6 /poi/build.gradle
parent6d9b450ce31209014d945a13c65fc23cb29a351c (diff)
downloadpoi-f71cebcce5ed809ee15cd69524f8cb0b0b2ea47c.tar.gz
poi-f71cebcce5ed809ee15cd69524f8cb0b0b2ea47c.zip
sonar fixes
close resources in tests fix gradle warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892683 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/build.gradle')
-rw-r--r--poi/build.gradle4
1 files changed, 3 insertions, 1 deletions
diff --git a/poi/build.gradle b/poi/build.gradle
index ea061ff73f..4e4507d51f 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -104,6 +104,8 @@ task cacheTest9(type: Copy) {
}
jar {
+ dependsOn cacheJava9
+
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
into('META-INF/versions/9') {
from JAVA9_SRC include '*.class'
@@ -117,7 +119,7 @@ jar {
// Create a separate jar for test-code to depend on it in other projects
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
-task testJar(type: Jar, dependsOn: testClasses) {
+task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ]) {
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}-tests")
classifier 'tests'