@@ -112,24 +112,52 @@ |
api 'com.zaxxer:HikariCP:3.4.5' |
} |
|
-artifactory { |
- contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver |
- publish { |
- repository { |
- repoKey = "${artifactory_repoKey}" |
- username = "${artifactory_user}" |
- password = "${artifactory_password}" |
- maven = true |
- } |
- defaults { |
- publications("mavenJava") |
- publishConfigs('published') |
- publishBuildInfo = true |
- publishArtifacts = true |
- publishPom = true |
- } |
- } |
- |
+ |
+task artifactoryLocalPublish finalizedBy artifactoryPublish { |
+ artifactory { |
+ publish { |
+ repository { |
+ contextUrl = "${artifactory_contextUrl}" |
+ repoKey = "${artifactory_repoKey}" |
+ username = "${artifactory_user}" |
+ password = "${artifactory_password}" |
+ maven = true |
+ |
+ defaults { |
+ publications("mavenJava") |
+ publishConfigs('published') |
+ publishBuildInfo = true |
+ publishArtifacts = true |
+ publishPom = true |
+ } |
+ } |
+ } |
+ } |
+ |
} |
+ |
+task artifactoryRemotePublish { |
+ doLast { |
+ artifactory { |
+ println("order of ops bleh") |
+ publish { |
+ repository { |
+ contextUrl = "${artifactory_remote_contextUrl}" |
+ repoKey = "${artifactory_remote_repoKey}" |
+ username = "${artifactory_remote_user}" |
+ password = "${artifactory_remote_password}" |
+ maven = true |
|
+ defaults { |
+ publications("mavenJava") |
+ publishConfigs('published') |
+ publishBuildInfo = true |
+ publishArtifacts = true |
+ publishPom = true |
+ } |
+ } |
+ } |
+ } |
+ } |
+} |
|
@@ -1,17 +1,20 @@ |
artifactory_local_user=admin |
-artifactory_local_password=123456aA |
+artifactory_local_password=Localpass1 |
artifactory_local_contextUrl=http://localhost:8081/artifactory |
artifactory_local_repoKey=csip-gradle-dev-local |
|
-artifactory_remote_contextUrl=http://10.2.228.63:8081/artifactory |
+artifactory_remote_contextUrl=http://129.82.20.231:8081/artifactory |
artifactory_remote_user=admin |
artifactory_remote_password=Colostate1 |
-artifactory_remote_repoKey=csip-remote-release |
- |
+artifactory_remote_repoKey=csip-dberams1 |
+publishLocal=False |
|
theGroup=edu.colostate.omslab |
theName=csip-core |
theSourceCompatibility=1.8 |
-action.custom-1=artifactoryPublish |
-action.custom-1.args=clean\nbuild\nartifactoryPublish |
-action.custom-2= |
+ |
+ |
+action.custom-1=artifactoryRemotePublish |
+action.custom-1.args=artifactoryRemotePublish\nartifactoryPublish |
+action.custom-2=artifactoryLocalPublish |
+action.custom-2.args=clean\nbuild\nartifactoryLocalPublish\nartifactoryPublish |