Artifactory plugin problems


(Gal) #1

Hey,

I work in a closed network with artifactory repository and I am trying to connect gradle to that repository. I have the plugin inside the network, but when I write
buildscript.dependencies.classpath files(new File(’~/.gradle/’, ‘plugins/build-info-eztractor-gradle-2.2.4-uber.jar’))
And
Apply plugin org.jfrog.artifactory
I get the following error:
Plugin property not found
And when I use ‘’ (i.e. apply plugin : ‘…’) I get this error:
Plugin with id artifactory not found

I have been searching for hours, and I didn’t find anything that works.

Any help will be welcom

Thanks


(Schalk Cronjé) #2

If your local Artifactory is exposed as a Maven repo (which it should be) you can just load the plugin from there using

buildscript {
  repositories {
    maven {
      url 'http://my.internal.location/m2'
   }
  }
  dependencies {
    classpath 'normal.maven.coordinates:go-here:1.0'
  }