This is not something I’ve tried, but I believe you should specify the nature in an ‘eclipse’ block of your gradle definitions.
The following posts might be of help?