# Buildship eclipse plugin

**URL:** <https://discuss.gradle.org/t/buildship-eclipse-plugin/23608>\
**Category:** Help/Discuss\
**Tags:** buildship\
**Created:** [August 5, 2017, 8:53pm UTC](https://discuss.gradle.org/t/buildship-eclipse-plugin/23608 "2017-08-05T20:53:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pr1985](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@pr1985](https://discuss.gradle.org/u/pr1985)\
**Post date:** [August 5, 2017, 8:53pm UTC](https://discuss.gradle.org/t/buildship-eclipse-plugin/23608/1 "2017-08-05T20:53:36Z")

</div>

Hi,  
The eclipse task doesn’t seem to execute when i refresh the project via buildship. When i add ‘eclipse-wtp’ i see cleanEclipseWtp etc tasks being called.

Buildship version = 2.1.1  
Gradle version = 4.0.2

build.gradle

> // Apply the java-library plugin to add support for Java Library  
> apply plugin: ‘java-library’  
> apply plugin: ‘eclipse’

> // In this section you declare where to find the dependencies of your project  
> repositories {  
> // Use jcenter for resolving your dependencies.  
> // You can declare any Maven/Ivy/file repository here.  
> jcenter()  
> }

> eclipse {  
> project {  
> comment = ‘Very interesting top secret test’  
> linkedResource name: ‘test1.json’, type: ‘1’, locationUri: ‘test.json’  
> }

> // wtp {  
> // facet {  
> // facet name: ‘java8Facet’, version: ‘1.8’  
> // }  
> // component{  
> // resource deployPath: ‘/’, sourcePath: ‘www’  
> // }  
> // }  
> }

> dependencies {  
> // This dependency is exported to consumers, that is to say found on their compile classpath.  
> api ‘org.apache.commons:commons-math3:3.6.1’

> ```
> // This dependency is used internally, and not exposed to consumers on their own compile classpath.
> implementation 'com.google.guava:guava:21.0'
> 
> ```

> ```
> // Use JUnit test framework
> testImplementation 'junit:junit:4.12'
> 
> ```
> 
> }

settings.gradle

> rootProject.name = ‘test1’

---

<div class="post-metadata">

**Author:** ![pr1985](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@pr1985](https://discuss.gradle.org/u/pr1985)\
**Post date:** [August 5, 2017, 10:09pm UTC](https://discuss.gradle.org/t/buildship-eclipse-plugin/23608/2 "2017-08-05T22:09:59Z")

</div>

My bad. I was passing an absolute path in locationUri instead of a uri.
