Skip to content

Instantly share code, notes, and snippets.

@bstopp
Created February 5, 2014 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstopp/18e8038fde96a7a9c67d to your computer and use it in GitHub Desktop.
Save bstopp/18e8038fde96a7a9c67d to your computer and use it in GitHub Desktop.
Artifactory build.gradle
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