Thank you for reporting the problem! For now, it is not obvious why it tries to invoke this code from Vaadin class. Could you provide detailed steps to reproduce the issue and add-ons you use in the project?
Try to add shortClassPath = false to compileWidget task. It should disable using ClassPathCommandLine which presents in the stacktrace as I described here: