buildscript { repositories { maven { url 'https://repo.spring.io/libs-milestone' credentials { username = "${artifactory_user}" password = "${artifactory_password}" } } } dependencies { //Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+" } } allprojects { apply plugin: "com.jfrog.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-milestone' username = "${artifactory_user}" password = "${artifactory_password}" maven = true } } }