How to Publish (deploy) local (.war .jar) files to Artifactory using Gradle version 1.12?

Dear all

I’m having a hard time trying to make this because of the older version of Gradle that I can not change because specifications, I would be very gratefully if someone can help me with this code.

What I have done till now:

buildscript {
    repositories {
        maven { url 'http://jcenter.bintray.com' }
    }
    dependencies {
        classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.0.1')
    }
}
apply plugin: com.jfrog.artifactory-upload'
  artifactory {
    contextUrl = 'http://my.domain.com/artifactory/'
      resolve {
        repository {
            repoKey = 'remote-deploy'
            maven = true
        }
    }
}

NOTE: I don’t know how to set my the local files to be uploaded but I read that I can use something like this “$rootDir\build\lib\buildProject.war”