I’d like to use the ‘java.nio’ package (specifically the ‘java.nio.Files’ class) from my plugin. So I put an import statement at the top of my groovy file:
import java.nio.Files
and I get the following error when building the plugin:
...\Helper.groovy: 6: unable to resolve class java.nio.Files
@ line 6, column 1.
import java.nio.Files
^
Just shooting from the hip here so not sure if this is relevant for you but I believe the Files class was introduced in java 1.7. Any chance you are compiling your sources using some earlier version? What does a: