If anyone can assist me here, I’d be most grateful as I am about to throw my computer out of the window. I downloaded the Jenkins IVY Plugin code from here as I need to debug it for work. https://github.com/jenkinsci/ivy-plugin.git
Running gradle from the command line works fine and it builds the ivy plugin jar file. I imported the project into eclipse and was able to execute the gradle tasks in eclipse without any issues. The problem I am facing is that the source files in the package explorer are littered with build errors. When I open one of the source files the imports are underlined with the error “Only a type can be imported. XXXX resolves to a package” If I do a CTRL + SHIFT + T the class is found and it resides in a jar file that resides under the ‘Project and External Dependencies’. A quick check of the build path shows that ‘Project and External Dependencies’ is listed under ‘Libraries’ and the class that is listed under the failed import resides in the jar and then should be on the build path.
I have searched google for the error, but it only seems applicable to JSP files and not Java source files.
I have tried closing, cleaning, refreshing gradle project, but to no avail.