diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-07-15 18:52:38 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-07-15 18:52:38 +0200 |
commit | 9869958c7c0952987f22b6f10f9e598f66dae468 (patch) | |
tree | cdd6cab0dc99351af3d2bca859266733fcbf3181 /build.gradle | |
parent | 9341b0be0b348797a7fa3e29a9cb047e76e1d81c (diff) | |
download | pdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.tar.gz pdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.tar.bz2 pdf-as-4-9869958c7c0952987f22b6f10f9e598f66dae468.zip |
Create Maven repository
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 25 |
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() { |