You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. dependencies {
  16. implementation "commons-codec:commons-codec:${commonsCodecVersion}"
  17. implementation 'org.apache.commons:commons-collections4:4.4'
  18. implementation "org.apache.commons:commons-math3:${commonsMathVersion}"
  19. implementation "org.apache.logging.log4j:log4j-api:${log4jVersion}"
  20. implementation 'javax.activation:activation:1.1.1'
  21. api 'com.zaxxer:SparseBitSet:1.2'
  22. testImplementation 'org.reflections:reflections:0.9.12'
  23. }
  24. jar {
  25. manifest {
  26. attributes 'Automatic-Module-Name': 'org.apache.poi.main'
  27. }
  28. }
  29. // Create a separate jar for test-code to depend on it in other projects
  30. // See http://stackoverflow.com/questions/5144325/gradle-test-dependency
  31. task testJar(type: Jar, dependsOn: testClasses) {
  32. baseName = "test-${project.archivesBaseName}"
  33. from sourceSets.test.output
  34. }
  35. configurations {
  36. tests
  37. }
  38. artifacts {
  39. tests testJar
  40. }