Need help publishing artifact

Hi guys,

Thanks for the help thus far. I am just missing something obvious I think. :frowning:

I am indeed using the artifactory plugin. Here is the cleaned up build script. I still don’t know how to make it do the upload though.

import groovyx.net.http.*
import org.apache.http.entity.FileEntity
import groovy.xml.MarkupBuilder
import java.security.MessageDigest
  apply plugin: 'artifactory'
apply plugin: 'groovy'
  buildscript {
   repositories {
      maven {
         url '${artifactory_contextUrl}/plugins-release'
      }
     }
   dependencies {
      classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.9')
      classpath(group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.5.1')
   }
}
   def someFile = file('label.txt')
  artifacts {
   archives someFile
}
  artifactory {
    contextUrl = "${artifactory_contextUrl}"
 //The base Artifactory URL if not overridden by the publisher/resolver
    publish {
        repository {
            repoKey = 'p4fa-gradle-repo'
            username = "${artifactory_user}"
            password = "${artifactory_password}"
            maven = false
        }
   }
   resolve {
      repository {
         repoKey = 'libs-release'
         username = "${artifactory_user}"
         password = "${artifactory_password}"
         maven = true
      }
   }
}