Search code examples
gradlespring-data-mongodbquerydsl

QueryDSL for Mongo with Spring and gradle


How do I generate the predicate classes (Q* classes) with gradle? I want to use Q* classes for Mongo using Spring data. Spring documentation shows maven and ant versions but no gradle.

Is there any plugin out there that I could use?


Solution

  • You can use the same approach is presented here Generating JPA2 Metamodel from a Gradle build script

    Just replace the Querydsl JPA APT processor with the Spring Mongodb processor.