moved java files into groovy source for joint compilation with gradle