Plugin with id 'com.palantir.git-version' not found, while using internally hosted artifactory

plugins

(Chavali) #1

I would like to use Gradle Git-Version 0.4.2
I am trying to use the plugin from internally hosted artifactory instead of https://plugins.gradle.org/m2/ as described in the build script snippet for use in all Gradle versions as per the note at https://plugins.gradle.org/plugin/com.palantir.git-version/0.4.2
Step 1: I have loaded the plugin jar to internal artifactory.
https://testrepo.com/artifactory/gradle-plugin/gradle/plugin/com/palantir/gradle/gitversion/gradle-git-version/0.4.2/gradle-git-version-0.4.2.jar
Step 2:
In my gradle.properties I have
artifactory_3PpluginsUrl=https://testrepo.com/artifactory/gradle-plugin
In my build.gradle I have
buildscript {
repositories {
maven {
url “${artifactory_3PpluginsUrl}”
}
}
dependencies {
classpath “gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.4.2”
}
}
apply plugin: "com.palantir.git-version"
Step 3:
Upon execution, I get

  • What went wrong:
    A problem occurred evaluating root project ‘EvalProjUtil’.

Plugin with id ‘com.palantir.git-version’ not found.

I believe it is downloading the dependency

Unable to locate local Maven repository.
Download https://testrepo.com/artifactory/gradle-plugin/gradle/plugin/com/palantir/gradle/gitversion/gradle-git-version/0.4.2/gradle-git-version-0.4.2.pom
Download https://testrepo.com/artifactory/gradle-plugin/gradle/plugin/com/palantir/gradle/gitversion/gradle-git-version/0.4.2/gradle-git-version-0.4.2.jar
Compiling build file ‘C:\codeBase\EvalProjUtil\build.gradle’ using BuildScriptTransformer.


(Chavali) #2

Please ignore, this is not a plugin issue. The uploaded jar was corrupted. it was missing the class files.