-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on javax.inject from querydsl. #1992
Remove dependency on javax.inject from querydsl. #1992
Conversation
To use querydsl, the spring application will need to add a dependency <dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>${querydsl}</version> <classifier>jakarta</classifier> <scope>provided</scope> </dependency> And explicitly specify CouchbasseAnnotationProcessor <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>annotation-processing</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> <configuration> <proc>only</proc> <annotationProcessors> <annotationProcessor>org.springframework.data.couchbase.repository.support.CouchbaseAnnotationProcessor</annotationProcessor> </annotationProcessors> <generatedTestSourcesDirectory>target/generated-test-sources</generatedTestSourcesDirectory> <compilerArgs> <arg>-Aquerydsl.logInfo=true</arg> </compilerArgs> </configuration> </execution> </executions> </plugin> Closes #1989.
@@ -79,7 +79,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment | |||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS; | |||
} | |||
|
|||
Configuration conf = createConfiguration(roundEnv); | |||
Configuration conf = createConfiguration(roundEnv); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. It makes sense to document how to use Couchbase's Annotation Processor. I plan to come up with some docs for MongoDB so you can take that as inspiration for the Couchbase docs.
Here's the PR for MongoDB's annotation processor usage. spring-projects/spring-data-mongodb#4814 I found that it isn't necessary to use the |
To use querydsl, the spring application will need to add a dependency <dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>${querydsl}</version> <classifier>jakarta</classifier> <scope>provided</scope> </dependency> And explicitly specify CouchbasseAnnotationProcessor <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>annotation-processing</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> <configuration> <proc>only</proc> <annotationProcessors> <annotationProcessor>org.springframework.data.couchbase.repository.support.CouchbaseAnnotationProcessor</annotationProcessor> </annotationProcessors> <generatedTestSourcesDirectory>target/generated-test-sources</generatedTestSourcesDirectory> <compilerArgs> <arg>-Aquerydsl.logInfo=true</arg> </compilerArgs> </configuration> </execution> </executions> </plugin> Closes #1989.
To use querydsl, the spring application will need to add a dependency <dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>${querydsl}</version> <classifier>jakarta</classifier> <scope>provided</scope> </dependency> And explicitly specify CouchbasseAnnotationProcessor <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>annotation-processing</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> <configuration> <proc>only</proc> <annotationProcessors> <annotationProcessor>org.springframework.data.couchbase.repository.support.CouchbaseAnnotationProcessor</annotationProcessor> </annotationProcessors> <generatedTestSourcesDirectory>target/generated-test-sources</generatedTestSourcesDirectory> <compilerArgs> <arg>-Aquerydsl.logInfo=true</arg> </compilerArgs> </configuration> </execution> </executions> </plugin> Closes #1989.
To use querydsl, the spring application will need to add a dependency
And explicitly specify CouchbasseAnnotationProcessor
Closes #1989.