aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-09-29 01:01:46 +0000
committerPJ Fanning <fanningpj@apache.org>2023-09-29 01:01:46 +0000
commit6c91c5f80797e230838dcaa7ce641f7a73af44fc (patch)
treeadbfc8454a01f8334bb74417f785fe3b0cf3b5d7 /build.gradle
parentfdad7e14081dee0046556e1c4d848039afcd522b (diff)
downloadpoi-6c91c5f80797e230838dcaa7ce641f7a73af44fc.tar.gz
poi-6c91c5f80797e230838dcaa7ce641f7a73af44fc.zip
fix release artifact names
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle14
1 files changed, 5 insertions, 9 deletions
diff --git a/build.gradle b/build.gradle
index 3218006718..40a3f10ba6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -52,7 +52,8 @@ if (project.hasProperty('enableSonar')) {
apply plugin: 'org.sonarqube'
}
-boolean isCIBuild = false;
+boolean isCIBuild = false
+String date = new Date().format('yyyyMMdd')
// For help converting an Ant build to a Gradle build, see
// https://docs.gradle.org/current/userguide/ant.html
@@ -99,7 +100,7 @@ allprojects {
// apply plugin: 'eclipse'
apply plugin: 'idea'
- version = '5.2.4'
+ version = '5.2.5-SNAPSHOT'
}
/**
@@ -722,14 +723,7 @@ tasks.withType(Tar) {
}
distributions {
- var version = subprojects[0].version
- var date = new Date().format('yyyyMMdd')
-
- var poiDep = project(':poi').configurations.getAt('compileClasspath')
- var ooxmlImp = project(':poi-ooxml').configurations.getAt('compileClasspath')
-
src {
- distributionBaseName = "poi-src-${version}-${date}"
contents {
from('.') {
exclude '*/build/**'
@@ -819,6 +813,8 @@ var srcDep = [
':poi-ooxml-lite:generateModuleInfo'
]
+srcDistTar.setArchiveFileName("poi-src-${subprojects[0].version}-${date}.tgz")
+srcDistZip.setArchiveFileName("poi-src-${subprojects[0].version}-${date}.zip")
srcDistTar.dependsOn srcDep
srcDistZip.dependsOn srcDep
soLinkCheck.dependsOn srcDep