Remove dependency on javax.inject from querydsl. (#1992)
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.
This commit is contained in:
@@ -79,7 +79,7 @@ public class CouchbaseAnnotationProcessor extends AbstractQuerydslProcessor {
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
Configuration conf = createConfiguration(roundEnv);
|
||||
Configuration conf = createConfiguration(roundEnv);
|
||||
try {
|
||||
conf.getTypeMappings();
|
||||
} catch (NoClassDefFoundError cnfe ){
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
org.springframework.data.couchbase.repository.support.CouchbaseAnnotationProcessor
|
||||
Reference in New Issue
Block a user