-
-
Save bstopp/18e8038fde96a7a9c67d to your computer and use it in GitHub Desktop.
Artifactory build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { | |
url 'https://our.company.com/artifactory/plugins-release' | |
credentials { | |
username = "${artifactory_user}" | |
password = "${artifactory_password}" | |
} | |
} | |
} | |
dependencies { | |
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.9') | |
} | |
} | |
allprojects { | |
apply plugin: 'artifactory' | |
} | |
artifactory { | |
contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver | |
publish { | |
repository { | |
repoKey = 'libs-release-local' | |
username = "${artifactory_user}" | |
password = "${artifactory_password}" | |
maven = true | |
} | |
} | |
resolve { | |
repository { | |
repoKey = 'libs-release' | |
username = "${artifactory_user}" | |
password = "${artifactory_password}" | |
maven = true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment