mirror of
https://github.com/apache/poi.git
synced 2025-02-20 08:56:03 +00:00
I now spent a few hours trying to make it work and the Gradle support is simply not production-ready and also not maintained, it triggers various strange errors and does not supporting the usual Gradle conventions. So I do not want to spend more time on it, feel free to revive it if you know how to make this work properly. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888138 13f79535-47bb-0310-9956-ffa450edef68
49 lines
1.8 KiB
Groovy
49 lines
1.8 KiB
Groovy
/* ====================================================================
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
==================================================================== */
|
|
|
|
dependencies {
|
|
implementation "commons-codec:commons-codec:${commonsCodecVersion}"
|
|
implementation 'org.apache.commons:commons-collections4:4.4'
|
|
implementation "org.apache.commons:commons-math3:${commonsMathVersion}"
|
|
implementation "org.apache.logging.log4j:log4j-api:${log4jVersion}"
|
|
implementation 'javax.activation:activation:1.1.1'
|
|
api 'com.zaxxer:SparseBitSet:1.2'
|
|
|
|
testImplementation 'org.reflections:reflections:0.9.12'
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Automatic-Module-Name': 'org.apache.poi.main'
|
|
}
|
|
}
|
|
|
|
// 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) {
|
|
baseName = "test-${project.archivesBaseName}"
|
|
from sourceSets.test.output
|
|
}
|
|
|
|
configurations {
|
|
tests
|
|
}
|
|
|
|
artifacts {
|
|
tests testJar
|
|
}
|