Skip to content

Commit dbee3c2

Browse files
author
Piotr Kubicki
committed
fix(pom): fix Query DSL
1 parent 0a0e3da commit dbee3c2

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

pom.xml

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,21 @@
5252
<artifactId>lombok</artifactId>
5353
<scope>provided</scope>
5454
</dependency>
55-
<dependency>
56-
<groupId>org.springframework.boot</groupId>
57-
<artifactId>spring-boot-starter-test</artifactId>
58-
<scope>test</scope>
59-
</dependency>
55+
56+
57+
<!-- 3) Query DSL advanced queries -->
6058
<dependency>
6159
<groupId>com.querydsl</groupId>
62-
<artifactId>querydsl-apt</artifactId>
60+
<artifactId>querydsl-jpa</artifactId>
6361
<version>5.1.0</version>
6462
<classifier>jakarta</classifier>
65-
<scope>provided</scope>
6663
</dependency>
6764
<dependency>
6865
<groupId>com.querydsl</groupId>
69-
<artifactId>querydsl-jpa</artifactId>
70-
<classifier>jakarta</classifier>
66+
<artifactId>querydsl-apt</artifactId>
7167
<version>5.1.0</version>
68+
<classifier>jakarta</classifier>
69+
<scope>provided</scope>
7270
</dependency>
7371
</dependencies>
7472

@@ -154,22 +152,6 @@
154152
<aggregate>true</aggregate>
155153
</configuration>
156154
</plugin>
157-
<plugin>
158-
<groupId>com.mysema.maven</groupId>
159-
<artifactId>apt-maven-plugin</artifactId>
160-
<version>1.1.3</version>
161-
<executions>
162-
<execution>
163-
<goals>
164-
<goal>process</goal>
165-
</goals>
166-
<configuration>
167-
<outputDirectory>target/generated-sources/java</outputDirectory>
168-
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
169-
</configuration>
170-
</execution>
171-
</executions>
172-
</plugin>
173155

174156
<!-- Spotless -->
175157
<plugin>
@@ -190,6 +172,33 @@
190172
</execution>
191173
</executions>
192174
</plugin>
175+
176+
<!-- Maven Compiler Plugin with QueryDSL -->
177+
<plugin>
178+
<groupId>org.apache.maven.plugins</groupId>
179+
<artifactId>maven-compiler-plugin</artifactId>
180+
<configuration>
181+
<annotationProcessorPaths>
182+
<path>
183+
<groupId>com.querydsl</groupId>
184+
<artifactId>querydsl-apt</artifactId>
185+
<version>5.1.0</version>
186+
<classifier>jakarta</classifier>
187+
</path>
188+
<path>
189+
<groupId>jakarta.persistence</groupId>
190+
<artifactId>jakarta.persistence-api</artifactId>
191+
<version>${jakarta-persistence.version}</version>
192+
</path>
193+
<path>
194+
<groupId>org.projectlombok</groupId>
195+
<artifactId>lombok</artifactId>
196+
<version>${lombok.version}</version>
197+
</path>
198+
</annotationProcessorPaths>
199+
<generatedSourcesDirectory>target/generated-sources/annotations</generatedSourcesDirectory>
200+
</configuration>
201+
</plugin>
193202
</plugins>
194203
</build>
195204
</project>

0 commit comments

Comments
 (0)