# Imports cannot resolved to a type

**URL:** <https://discuss.elastic.co/t/imports-cannot-resolved-to-a-type/244551>\
**Category:** Elasticsearch\
**Created:** [August 11, 2020, 12:52pm UTC](https://discuss.elastic.co/t/imports-cannot-resolved-to-a-type/244551 "2020-08-11T12:52:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mun-inder-jeet-singh](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@mun-inder-jeet-singh](https://discuss.elastic.co/u/mun-inder-jeet-singh)\
**Post date:** [August 11, 2020, 12:52pm UTC](https://discuss.elastic.co/t/imports-cannot-resolved-to-a-type/244551/1 "2020-08-11T12:52:14Z")

</div>

Hi All

I have cloned the repo from github and imported into eclipse.  
There are imports error for **groovy** classes only which i need to resolve.  
Kindly guide .

P.S. All the necessary files which needs to be imported is already present.

Following are the details :

1. In this line on TestWithSslPlugin class:

```auto
project.getPlugins().withType(StandaloneRestTestPlugin.class).configureEach(restTestPlugin -> {

```

Error : Multiple markers at this line  
`- The method withType(Class<S>) in the type PluginCollection<Plugin> is not applicable for the arguments `  
`(Class<StandaloneRestTestPlugin>)`  
`- StandaloneRestTestPlugin cannot be resolved to a type`

1. In this line on RestTestFromSnippetsTaskTestsclass

```auto
import static org.elasticsearch.gradle.doc.RestTestsFromSnippetsTask.replaceBlockQuote;

```

Error: `The import org.elasticsearch.gradle.doc.RestTestsFromSnippetsTask cannot be resolved`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 8, 2020, 12:52pm UTC](https://discuss.elastic.co/t/imports-cannot-resolved-to-a-type/244551/2 "2020-09-08T12:52:14Z")

</div>

Closed on September 8, 2020, 12:52pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
