mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
feat: 支持 JDK 25+ 显式声明 Lombok 注解处理器
- 添加 `jdk25-annotation-processor` profile,解决 JDK 25+ 下注解处理器自动发现关闭的问题 (cherry picked from commit 852cb195aa36425b3f0c512727a4f04b01da410a)
This commit is contained in:
1 parent
bca999535c
commit
08c081304a
1 file changed
+23
@@ -292,5 +292,28 @@
|
||||
<module>pigx-boot</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<!-- JDK 25+ 默认关闭注解处理器自动发现,需要显式声明 Lombok -->
|
||||
<profile>
|
||||
<id>jdk25-annotation-processor</id>
|
||||
<activation>
|
||||
<jdk>[25,)</jdk>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
Reference in new issue
Block a user