Gradle not loading sub project resources in service loader

I need help with java - Service loader not can't find providers when using gradle but works with maven - Stack Overflow

With maven everything is working fine but gradle seems to be not loading META-INF from resources of subproject querydsl-ext-apt. Kindly help

Because Maven throws together things that should not be thrown together which Gradle properly separates.
The class using the services you define is run as part of annotation processing.
So your services are not needed as implementation dependencies, but as annotationProcessor dependencies.

Replace

implementation project(':querydsl-ext-apt')

by

annotationProcessor project(':querydsl-ext-apt')

and your services are found where necessary.

Thanks it worked for me