aboutsummaryrefslogtreecommitdiff
path: root/moaSig/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/build.gradle')
-rw-r--r--moaSig/build.gradle39
1 files changed, 38 insertions, 1 deletions
diff --git a/moaSig/build.gradle b/moaSig/build.gradle
index 3935b41..fb629c3 100644
--- a/moaSig/build.gradle
+++ b/moaSig/build.gradle
@@ -13,12 +13,13 @@ subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
+ apply plugin: 'maven'
repositories {
mavenCentral()
maven {
- url "https://apps.egiz.gv.at/maven/"
+ url "https://apps.egiz.gv.at/maven/"
mavenContent {
releasesOnly()
}
@@ -65,6 +66,42 @@ subprojects {
}
}
+ task deployJar(type: Jar)
+
+ configurations {
+ deployerJars
+
+ }
+
+ //configurations.archives.artifacts.removeAll {PublishArtifact publishArtifact -> publishArtifact.extension == 'zip'}
+
+ //configurations.archives.artifacts.removeAll {
+ // exclude from the archives configuration all artifacts that were generated by distZip & distTar
+ // def depTasks = it.getBuildDependencies().getDependencies()
+ // depTasks.contains(distZip) || depTasks.contains(distTar)
+ //}
+
+
+ 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-snaphot") {
+ authentication(userName: System.getenv("EGIZ_MAVEN_USER"), password: System.getenv("EGIZ_MAVEN_PASSWORD"))
+
+ }
+ }
+ }
+
+
}
def getCheckedOutGitCommitHash() {