This is needed since JOSM currently has a minimum Java version of 11,
while this plugin now requires Java 17+.
Signed-off-by: Taylor Smock <tsmock@meta.com>
---
pom.xml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 03cd7a4..ecf0d24 100644
--- a/pom.xml+++ b/pom.xml
@@ -6,6 +6,7 @@
<version>1.0-SNAPSHOT</version>
<properties>
<plugin.main.version>19067</plugin.main.version>
+ <plugin.minimum.java.version>17</plugin.minimum.java.version> </properties>
<repositories>
<repository>
@@ -60,6 +61,8 @@
<Author>qeef</Author>
<Plugin-Link>https://damn-project.org</Plugin-Link>
<Plugin-Icon>images/dialogs/damn.svg</Plugin-Icon>
+ <!-- JOSM r19067 has a minimum Java version of 11. We have a minimum Java version of 17, so we should specify that we need a newer version of Java -->+ <Plugin-Minimum-Java-Version>${plugin.minimum.java.version}</Plugin-Minimum-Java-Version> </manifestEntries>
</archive>
</configuration>
@@ -69,7 +72,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
- <release>17</release>+ <release>${plugin.minimum.java.version}</release> </configuration>
</plugin>
<plugin>
@@ -88,7 +91,7 @@
<version>3.6.3</version>
</requireMavenVersion>
<requireJavaVersion>
- <version>17</version>+ <version>${plugin.minimum.java.version}</version> </requireJavaVersion>
</rules>
</configuration>
--
2.46.0