aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorThomas <>2021-12-12 12:33:19 +0100
committerGerald Palfinger <gerald.palfinger@iaik.tugraz.at>2022-01-20 14:54:26 +0100
commit5e66df88b3a21edd0a51d1f1139e66ba93ea9df1 (patch)
tree3424750319b27a3507c12e97f04c4cfb542d51d7 /build.gradle
parent70efc77fb1ba95a74ad8c7ce6ad097de35d208e2 (diff)
downloadpdf-as-4-5e66df88b3a21edd0a51d1f1139e66ba93ea9df1.tar.gz
pdf-as-4-5e66df88b3a21edd0a51d1f1139e66ba93ea9df1.tar.bz2
pdf-as-4-5e66df88b3a21edd0a51d1f1139e66ba93ea9df1.zip
update gradle build to deploy artifacts into EGIZ maven repo
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle44
1 files changed, 36 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle
index 6fe2c297..7eac8db6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -46,7 +46,7 @@ subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
- //apply plugin: 'maven'
+ apply plugin: 'maven'
group = 'at.gv.egiz.pdfas'
configurations {
@@ -54,7 +54,22 @@ subprojects {
cveCheck
}
- repositories { mavenCentral() }
+ repositories {
+ mavenCentral()
+
+ maven {
+ url "https://apps.egiz.gv.at/maven/"
+ mavenContent {
+ releasesOnly()
+ }
+ }
+ maven {
+ url "https://apps.egiz.gv.at/maven-snapshot/"
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
+ }
dependencies {
testImplementation 'junit:junit:4.13.2'
@@ -136,12 +151,25 @@ subprojects {
}
}
-// uploadArchives {
-// repositories.mavenDeployer {
-// repository(url: project.releaseRepoUrl)
-// snapshotRepository(url: project.snapshotRepoUrl)
-// }
-// }
+ dependencies {
+ deployerJars "org.apache.maven.wagon:wagon-ssh:2.9"
+
+ }
+
+ uploadArchives {
+ repositories.mavenDeployer {
+ configuration = configurations.deployerJars
+ repository(url: "sftp://apps.egiz.gv.at/maven") {
+ authentication(userName: System.getenv("EGIZ_MAVEN_USER"), password: System.getenv("EGIZ_MAVEN_PASSWORD"))
+
+ }
+ snapshotRepository(url: "sftp://apps.egiz.gv.at/maven-snapshot") {
+ authentication(userName: System.getenv("EGIZ_MAVEN_USER"), password: System.getenv("EGIZ_MAVEN_PASSWORD"))
+
+ }
+ }
+ }
+
task(internalRelease) {
doLast {