Send gradle build to artifactory/nexus server

apply plugin: ‘maven’
uploadArchives {
 repositories {
  mavenDeployer {
   repository(url: “{PATH_TO_REPO}”) {
    authentication(userName: “{USER_NAME}”, password: “{PASSWORD}”)
   }
   pom.version = “{POM_VERSION}”
   pom.artifactId = “{ARTIFACT_ID}”
   pom.groupId = “{GROUP_ID}”
  }
 }
}

Leave a Reply