This is an issue about exporting / importing scripts that are not in the default package.
Can't be imported from a workspace from a previous version (didn't work to import in Studio 7.8.3 from a 7.8.0 workspace);
Can't be exported as a bos archive (see "steps to reproduce").
The class works fine in groovy expressions within the process.
Leave the package name empty at the Groovy class creation. Despite the warning "The use of the default package is discouraged", it works well in groovy expression (even better : static methods appear in user defined functions), and no more problem about exporting these classes. Although it seems to be a bad practice.
Thanks for opening this issue. I managed to reproduced it and report it internally.
This issue has been fixed. Feel free to add a comment if you still have issue related to import of Groovy scripts.
Thanks again for taking the time to report issues.