Buildship eclipse plugin

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’

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

1 Like