diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-08-28 23:48:48 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-08-28 23:48:48 +0000 |
commit | f71cebcce5ed809ee15cd69524f8cb0b0b2ea47c (patch) | |
tree | 4f9f798ae3acd7a3e50a675becbe85055d1beff6 /poi-excelant/build.gradle | |
parent | 6d9b450ce31209014d945a13c65fc23cb29a351c (diff) | |
download | poi-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-excelant/build.gradle')
-rw-r--r-- | poi-excelant/build.gradle | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle index d7562e554d..ee7cd664c0 100644 --- a/poi-excelant/build.gradle +++ b/poi-excelant/build.gradle @@ -105,6 +105,8 @@ task cacheTest9(type: Copy) { } jar { + dependsOn cacheJava9 + destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}") if (JavaVersion.current() == JavaVersion.VERSION_1_8) { @@ -120,7 +122,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' |