Skip to content

Commit 0389911

Browse files
committed
Update project to Java 21 and adjust Maven configurations
- Change Java compliance and target version to 21 in .classpath and .prefs - Update Maven compiler settings to use release 21 - Bump project version to 1.4.4-SNAPSHOT - Modify Lombok plugin configuration for compatibility with Java 21
1 parent 3b0a7ee commit 0389911

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

VotifierPlus/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<attribute name="maven.pomderived" value="true"/>
2525
</attributes>
2626
</classpathentry>
27-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
27+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
2828
<attributes>
2929
<attribute name="maven.pomderived" value="true"/>
3030
</attributes>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
eclipse.preferences.version=1
2-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3-
org.eclipse.jdt.core.compiler.compliance=1.8
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
3+
org.eclipse.jdt.core.compiler.compliance=21
44
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
55
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
66
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7-
org.eclipse.jdt.core.compiler.release=disabled
8-
org.eclipse.jdt.core.compiler.source=1.8
7+
org.eclipse.jdt.core.compiler.release=enabled
8+
org.eclipse.jdt.core.compiler.source=21

VotifierPlus/pom.xml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.bencodez</groupId>
77
<artifactId>VotifierPlus</artifactId>
8-
<version>1.4.3</version>
8+
<version>1.4.4-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010
<name>VotifierPlus</name>
1111
<properties>
12-
<maven.compiler.source>1.8</maven.compiler.source>
13-
<maven.compiler.target>1.8</maven.compiler.target>
12+
<maven.compiler.release>21</maven.compiler.release>
1413
<github.global.server>github</github.global.server>
1514
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1615
<build.number>NOTSET</build.number>
@@ -107,23 +106,19 @@
107106
</executions>
108107
</plugin>
109108
<plugin>
110-
<groupId>org.projectlombok</groupId>
111-
<artifactId>lombok-maven-plugin</artifactId>
112-
<version>1.18.20.0</version>
113-
<executions>
114-
<execution>
115-
<id>delombok</id>
116-
<phase>deploy</phase>
117-
<goals>
118-
<goal>delombok</goal>
119-
</goals>
120-
<configuration>
121-
<addOutputDirectory>false</addOutputDirectory>
122-
<outputDirectory>${project.basedir}/target/delombok</outputDirectory>
123-
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
124-
</configuration>
125-
</execution>
126-
</executions>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-compiler-plugin</artifactId>
111+
<version>3.13.0</version>
112+
<configuration>
113+
<release>21</release>
114+
<annotationProcessorPaths>
115+
<path>
116+
<groupId>org.projectlombok</groupId>
117+
<artifactId>lombok</artifactId>
118+
<version>1.18.42</version>
119+
</path>
120+
</annotationProcessorPaths>
121+
</configuration>
127122
</plugin>
128123
<plugin>
129124
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)