How Gradle detect the declared component compatibility?

I get the follow error:

Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8

Where does Gradle find this com compatible? I can’t find any in the meta data that define it.

It is in the Gradle Module Metadata.
It means that what you depend on requires at least Java 11.
But where you want to consume it, you build with Java 8 and thus it does not work.