Using version 3.1, I decided to split my build file with one file dedicated to pushing artifacts to artifactory. I created a new file artifactory.gradle and applying it from the main build file.
Am facing issues when I try to
apply from: 'gradle-common/artifactory.gradle'. I understand that there is a known problem as described here.
My artifactory.gradle looks like
apply plugin: org.jfrog.hudson.ArtifactoryPlugin
apply plugin: org.gradle.api.plugins.MavenPlugin
And I am getting an error
Script ‘/Users/sseshac/src/JenkinsTrial/src/repo/gradle-common/artifactory.gradle’ line: 8
* What went wrong: A problem occurred evaluating script. > Could not get unknown property 'org' for root project 'api' of type org.gradle.api.Project.
Any help will be greatly appreciated.