aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-15 18:52:38 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-15 18:52:38 +0200
commit9869958c7c0952987f22b6f10f9e598f66dae468 (patch)
treecdd6cab0dc99351af3d2bca859266733fcbf3181
parent9341b0be0b348797a7fa3e29a9cb047e76e1d81c (diff)
downloadpdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.tar.gz
pdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.tar.bz2
pdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.zip
Create Maven repository
-rw-r--r--build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 6bf1da7f..a5d3f0d1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,18 +1,41 @@
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
+ apply plugin: 'maven'
+ group = 'at.gv.egiz.pdfas'
+
+ configurations {
+ deployerJars
+ }
+
repositories { mavenCentral() }
- dependencies { testCompile 'junit:junit:4.8.2' }
+ dependencies {
+ testCompile 'junit:junit:4.8.2'
+ //to use WebDav protocol on upload
+ deployerJars 'org.apache.maven.wagon:wagon-webdav:1.0-beta-2'
+ }
sourceCompatibility = 1.5
+ project.ext{
+ releaseRepoUrl = "file://${project(':').projectDir}/../mvn-repo/releases"
+ snapshotRepoUrl = "file://${project(':').projectDir}/../mvn-repo/snapshots"
+ }
+
version = '4.0.0-RC7'
pdfasversion = version
revision = getCheckedOutGitCommitHash()
jar { manifest.attributes provider: 'EGIZ', 'Specification-Version': getCheckedOutGitCommitHash(), 'Implementation-Version': version }
+
+ uploadArchives {
+ repositories.mavenDeployer {
+ repository(url: project.releaseRepoUrl)
+ snapshotRepository(url: project.snapshotRepoUrl)
+ }
+ }
}
def getCheckedOutGitCommitHash() {