Create jar from generated sources in Software Model

I have perused the Play plugin trying to find out how I can create a Jar from generated sources. From what I can tell they just use the CopySpec functions to define where the class files will come from. I can’t figure out how/where the compile to happens, are there any examples of this that I can look at?