build.gradle: turn service files generation into a task

However, the problem at this moment is that it needs to be invoked by hand; what
is needed now is to make the jar task depend on it...