What does the "classes" task do?

In my project, the classes task of the Java plugin is always skipped “as it has no actions”

I can’t find any information about what this task actually does. Can someone enlighten me?

The ‘classes’ task produces everything that will go into the Jar, by depending on the ‘processResources’ and ‘compileJava’ tasks. It doesn’t have any behavior on its own (i.e. it has no task action). Same goes for other tasks such as ‘build’, ‘check’, etc.

Thanks, that clears it up.