aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-08-19 13:19:01 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-08-19 13:19:01 +0200
commit17a691b4744214e67d774fad96e40e4797844615 (patch)
treef029a5dcc106d07f38ed269fa5f10a9c4a387ac8
parent543498ccc99509254af2fa2db493479279221537 (diff)
downloadpdf-as-4-17a691b4744214e67d774fad96e40e4797844615.tar.gz
pdf-as-4-17a691b4744214e67d774fad96e40e4797844615.tar.bz2
pdf-as-4-17a691b4744214e67d774fad96e40e4797844615.zip
Build system update4.0.0-RC9
-rw-r--r--pdf-as-cli/build.gradle9
-rw-r--r--pdf-as-common/build.gradle5
-rw-r--r--pdf-as-legacy/build.gradle5
-rw-r--r--pdf-as-lib/build.gradle6
-rw-r--r--pdf-as-web/build.gradle29
-rw-r--r--signature-standards/sigs-pades/build.gradle5
-rw-r--r--signature-standards/sigs-pkcs7detached/build.gradle5
7 files changed, 64 insertions, 0 deletions
diff --git a/pdf-as-cli/build.gradle b/pdf-as-cli/build.gradle
index e2c3838c..383e0c8e 100644
--- a/pdf-as-cli/build.gradle
+++ b/pdf-as-cli/build.gradle
@@ -9,6 +9,15 @@ repositories {
mavenCentral()
}
+task releases(type: Copy) {
+ from distZip.outputs
+ from distTar.outputs
+ into rootDir.toString() + "/releases"
+}
+
+releases.dependsOn distZip
+releases.dependsOn distTar
+
dependencies {
compile project (':pdf-as-lib')
compile project (':pdf-as-legacy')
diff --git a/pdf-as-common/build.gradle b/pdf-as-common/build.gradle
index 1ef6b6c8..407c30dd 100644
--- a/pdf-as-common/build.gradle
+++ b/pdf-as-common/build.gradle
@@ -11,6 +11,11 @@ repositories {
mavenCentral()
}
+task releases(type: Copy) {
+ from jar.outputs
+ into rootDir.toString() + "/releases"
+}
+
dependencies {
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.5'
compile group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.8.5'
diff --git a/pdf-as-legacy/build.gradle b/pdf-as-legacy/build.gradle
index 6aae14bb..03a016ab 100644
--- a/pdf-as-legacy/build.gradle
+++ b/pdf-as-legacy/build.gradle
@@ -23,6 +23,11 @@ dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}
+task releases(type: Copy) {
+ from jar.outputs
+ into rootDir.toString() + "/releases"
+}
+
/*javadoc {
appName = 'PDF-AS-4 Legacy Library'
exclude = '/**'
diff --git a/pdf-as-lib/build.gradle b/pdf-as-lib/build.gradle
index 892fa019..2215692e 100644
--- a/pdf-as-lib/build.gradle
+++ b/pdf-as-lib/build.gradle
@@ -60,6 +60,12 @@ dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}
+task releases(type: Copy) {
+ from jar.outputs
+ into rootDir.toString() + "/releases"
+ rename '.*.war', 'pdf-as-web.war'
+}
+
task apidocs(type: Javadoc) {
classpath = configurations.compile
source = sourceSets.main.allJava
diff --git a/pdf-as-web/build.gradle b/pdf-as-web/build.gradle
index ccc29bec..ba356a0d 100644
--- a/pdf-as-web/build.gradle
+++ b/pdf-as-web/build.gradle
@@ -145,3 +145,32 @@ task buildTomcat(dependsOn: injectPdfAsWebApp, type: Zip) {
destinationDir project.buildDir
}
+task buildTomcatTar(dependsOn: injectPdfAsWebApp, type: Tar) {
+ String targetDir = project.buildDir.toString() + "/tomcat-##VERSION##/apache-tomcat-##VERSION##";
+ targetDir = targetDir.replaceAll("##VERSION##", tomcatVersion);
+
+ String archive = "apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.tar";
+ archive = archive.replaceAll("##VERSION##", tomcatVersion);
+ archive = archive.replaceAll("##PVERSION##", version);
+
+ from targetDir
+ archiveName archive
+ destinationDir project.buildDir
+}
+
+task releases(dependsOn: buildTomcat, type: Copy) {
+ String archive = project.buildDir.toString() + "/apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.zip";
+ archive = archive.replaceAll("##VERSION##", tomcatVersion);
+ archive = archive.replaceAll("##PVERSION##", version);
+
+ String tararchive = project.buildDir.toString() + "/apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.tar";
+ tararchive = tararchive.replaceAll("##VERSION##", tomcatVersion);
+ tararchive = tararchive.replaceAll("##PVERSION##", version);
+
+ from war.outputs
+ from archive
+ from tararchive
+ into rootDir.toString() + "/releases"
+}
+
+releases.dependsOn buildTomcatTar
diff --git a/signature-standards/sigs-pades/build.gradle b/signature-standards/sigs-pades/build.gradle
index 41540100..871ef92d 100644
--- a/signature-standards/sigs-pades/build.gradle
+++ b/signature-standards/sigs-pades/build.gradle
@@ -12,6 +12,11 @@ repositories {
mavenCentral()
}
+task releases(type: Copy) {
+ from jar.outputs
+ into rootDir.toString() + "/releases"
+}
+
dependencies {
compile project (':pdf-as-lib')
compile project (':pdf-as-common')
diff --git a/signature-standards/sigs-pkcs7detached/build.gradle b/signature-standards/sigs-pkcs7detached/build.gradle
index 7ae44d17..5b9d68bc 100644
--- a/signature-standards/sigs-pkcs7detached/build.gradle
+++ b/signature-standards/sigs-pkcs7detached/build.gradle
@@ -12,6 +12,11 @@ repositories {
mavenCentral()
}
+task releases(type: Copy) {
+ from jar.outputs
+ into rootDir.toString() + "/releases"
+}
+
dependencies {
compile project (':pdf-as-lib')
compile project (':pdf-as-common')