Template
Compare commits
2
Commits
e722e5dde4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80194a6f14 | ||
|
|
61a6dfe060 |
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
Example Maven Project for a Java Application.
|
Example Maven Project for a Java Application.
|
||||||
|
|
||||||
**Update**: Added reporting to create a site (html documentation of project)
|
**Update**: Java 25 is now fully supported. This template is built and tested with JDK 25.
|
||||||
|
|
||||||
**Update**: Java 21 is now fully supported
|
**Update**: Added reporting to create a site (html documentation of project)
|
||||||
|
|
||||||
This project includes:
|
This project includes:
|
||||||
- Lombok to reduce boilerplate code
|
- Lombok to reduce boilerplate code
|
||||||
@@ -15,7 +15,7 @@ This project includes:
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
To use this Template, all you need is a local Java Installation.
|
To use this Template, all you need is a local Java Installation.
|
||||||
My current advice is to use a long term supported (LTS) version of either Java 17 or Java 21.
|
The project targets Java 25 (`<java.version>25</java.version>`). My current advice for general production use is still a long term supported (LTS) version of either Java 17 or Java 21.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -28,32 +28,32 @@
|
|||||||
<jar.filename>${project.artifactId}-${project.version}</jar.filename>
|
<jar.filename>${project.artifactId}-${project.version}</jar.filename>
|
||||||
|
|
||||||
<!-- Dependency versions -->
|
<!-- Dependency versions -->
|
||||||
<jetbrains.annotations.version>26.0.2-1</jetbrains.annotations.version>
|
<jetbrains.annotations.version>26.1.0</jetbrains.annotations.version>
|
||||||
<junit.version>6.0.1</junit.version>
|
<junit.version>6.1.3</junit.version>
|
||||||
<lombok.version>1.18.42</lombok.version>
|
<lombok.version>1.18.48</lombok.version>
|
||||||
<mockito.version>5.20.0</mockito.version>
|
<mockito.version>5.23.0</mockito.version>
|
||||||
<spotbugs.version>4.9.8</spotbugs.version>
|
<spotbugs.version>4.10.4</spotbugs.version>
|
||||||
|
|
||||||
<!-- Plugin dependencies -->
|
<!-- Plugin dependencies -->
|
||||||
<codehaus.version.plugin>2.20.1</codehaus.version.plugin>
|
<codehaus.version.plugin>2.21.0</codehaus.version.plugin>
|
||||||
<jpackage.maven.plugin>0.1.5</jpackage.maven.plugin>
|
<jpackage.maven.plugin>0.1.5</jpackage.maven.plugin>
|
||||||
<maven.clean.plugin>3.5.0</maven.clean.plugin>
|
<maven.clean.plugin>3.5.0</maven.clean.plugin>
|
||||||
<maven.compiler.plugin>3.14.1</maven.compiler.plugin>
|
<maven.compiler.plugin>3.16.0</maven.compiler.plugin>
|
||||||
<maven.dependency.plugin>3.9.0</maven.dependency.plugin>
|
<maven.dependency.plugin>3.11.0</maven.dependency.plugin>
|
||||||
<maven.deploy.plugin>3.1.4</maven.deploy.plugin>
|
<maven.deploy.plugin>3.1.4</maven.deploy.plugin>
|
||||||
<maven.enforcer.plugin>3.6.2</maven.enforcer.plugin>
|
<maven.enforcer.plugin>3.6.3</maven.enforcer.plugin>
|
||||||
<maven.install.plugin>3.1.4</maven.install.plugin>
|
<maven.install.plugin>3.1.4</maven.install.plugin>
|
||||||
<maven.jar.plugin>3.5.0</maven.jar.plugin>
|
<maven.jar.plugin>3.5.1</maven.jar.plugin>
|
||||||
<maven.javadoc.plugin>3.12.0</maven.javadoc.plugin>
|
<maven.javadoc.plugin>3.12.0</maven.javadoc.plugin>
|
||||||
<maven.pmd.plugin>3.28.0</maven.pmd.plugin>
|
<maven.pmd.plugin>3.28.0</maven.pmd.plugin>
|
||||||
<maven.project.info.reports.plugin>3.9.0</maven.project.info.reports.plugin>
|
<maven.project.info.reports.plugin>3.9.0</maven.project.info.reports.plugin>
|
||||||
<maven.resources.plugin>3.4.0</maven.resources.plugin>
|
<maven.resources.plugin>3.5.0</maven.resources.plugin>
|
||||||
<maven.shade.plugin>3.6.1</maven.shade.plugin>
|
<maven.shade.plugin>3.6.2</maven.shade.plugin>
|
||||||
<maven.site.plugin>4.0.0-M16</maven.site.plugin>
|
<maven.site.plugin>4.0.0-M16</maven.site.plugin>
|
||||||
<maven.surfire.plugin>3.5.4</maven.surfire.plugin>
|
<maven.surfire.plugin>3.6.0</maven.surfire.plugin>
|
||||||
<moditect.maven.plugin>1.0.0.RC2</moditect.maven.plugin>
|
<moditect.maven.plugin>1.0.0.RC2</moditect.maven.plugin>
|
||||||
<native.maven.plugin>0.11.3</native.maven.plugin>
|
<native.maven.plugin>0.11.3</native.maven.plugin>
|
||||||
<spotbugs.maven.plugin>4.9.8.2</spotbugs.maven.plugin>
|
<spotbugs.maven.plugin>4.10.4.1</spotbugs.maven.plugin>
|
||||||
|
|
||||||
<!-- other properties -->
|
<!-- other properties -->
|
||||||
<pmd.target>pmd</pmd.target> <!-- Set to 'pmd' if pmd should not fail on issues. Set to 'check' if you want build to fail when issues found -->
|
<pmd.target>pmd</pmd.target> <!-- Set to 'pmd' if pmd should not fail on issues. Set to 'check' if you want build to fail when issues found -->
|
||||||
@@ -61,7 +61,8 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<required.maven.version>3.8.6</required.maven.version>
|
<maven.compiler.release>${java.version}</maven.compiler.release>
|
||||||
|
<required.maven.version>3.9.11</required.maven.version>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -72,6 +73,7 @@
|
|||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>${lombok.version}</version>
|
<version>${lombok.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- JUnit 5 -->
|
<!-- JUnit 5 -->
|
||||||
@@ -142,6 +144,16 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>${maven.compiler.plugin}</version>
|
<version>${maven.compiler.plugin}</version>
|
||||||
|
<configuration>
|
||||||
|
<release>${java.version}</release>
|
||||||
|
<annotationProcessorPaths>
|
||||||
|
<path>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>${lombok.version}</version>
|
||||||
|
</path>
|
||||||
|
</annotationProcessorPaths>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!--Test execution -->
|
<!--Test execution -->
|
||||||
|
|||||||
Reference in New Issue
Block a user