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

**URL:** <https://discuss.gradle.org/t/plugin-with-id-com-palantir-git-version-not-found-while-using-internally-hosted-artifactory/16887>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [April 21, 2016, 4:10pm UTC](https://discuss.gradle.org/t/plugin-with-id-com-palantir-git-version-not-found-while-using-internally-hosted-artifactory/16887 "2016-04-21T16:10:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravikanth](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@Ravikanth](https://discuss.gradle.org/u/Ravikanth)\
**Post date:** [April 21, 2016, 4:10pm UTC](https://discuss.gradle.org/t/plugin-with-id-com-palantir-git-version-not-found-while-using-internally-hosted-artifactory/16887/1 "2016-04-21T16:10:20Z")

</div>

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/](https://plugins.gradle.org/m2/) as described in the build script snippet for use in all Gradle versions as per the note at [Gradle - Plugin: com.palantir.git-version](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](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](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](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](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.

---

<div class="post-metadata">

**Author:** ![Ravikanth](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@Ravikanth](https://discuss.gradle.org/u/Ravikanth)\
**Post date:** [April 21, 2016, 5:16pm UTC](https://discuss.gradle.org/t/plugin-with-id-com-palantir-git-version-not-found-while-using-internally-hosted-artifactory/16887/2 "2016-04-21T17:16:44Z")

</div>

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