Exclude javax.inject and CouchbaseAnnotationProcessor to exit gracefully without. (#1934)

CouchbaseAnnotationProcessor will provide a warning and skip generation
if javax.inject is not present.
This commit is contained in:
Michael Reiche
2024-04-10 17:35:27 -07:00
committed by mikereiche
parent bccab34cc3
commit e65e53e294
5 changed files with 73 additions and 13 deletions

23
pom.xml
View File

@@ -48,6 +48,19 @@
<artifactId>querydsl-apt</artifactId>
<version>${querydsl}</version>
<classifier>jakarta</classifier>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -249,13 +262,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>${querydsl}</version>
</dependency>
</dependencies>
<configuration>
<proc>none</proc>
</configuration>
@@ -272,6 +278,9 @@
<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>