aboutsummaryrefslogtreecommitdiffstats
path: root/main/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'main/build.gradle')
-rw-r--r--main/build.gradle50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/build.gradle b/main/build.gradle
new file mode 100644
index 0000000000..5167b32cfe
--- /dev/null
+++ b/main/build.gradle
@@ -0,0 +1,50 @@
+/* ====================================================================
+ 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
+}
+
+japicmp.baseline = "org.apache.poi:poi:${japicmpversion}@jar" \ No newline at end of file