diff --git a/plexus-sec-dispatcher-build.xml b/plexus-sec-dispatcher-build.xml
index 418c44b..b2aeafc 100644
--- a/plexus-sec-dispatcher-build.xml
+++ b/plexus-sec-dispatcher-build.xml
@@ -15,7 +15,8 @@
-
+
+
@@ -104,6 +105,7 @@
debug="true"
optimize="false"
deprecation="true"
+ release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
diff --git a/plexus-sec-dispatcher.changes b/plexus-sec-dispatcher.changes
index 4b083e1..ea0f426 100644
--- a/plexus-sec-dispatcher.changes
+++ b/plexus-sec-dispatcher.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed Oct 25 15:45:19 UTC 2023 - Fridrich Strba
+
+- Build with source and target levels 8
+
-------------------------------------------------------------------
Fri May 13 09:06:37 UTC 2022 - Fridrich Strba
diff --git a/plexus-sec-dispatcher.spec b/plexus-sec-dispatcher.spec
index ebfa136..7e88bb7 100644
--- a/plexus-sec-dispatcher.spec
+++ b/plexus-sec-dispatcher.spec
@@ -1,7 +1,7 @@
#
# spec file for package plexus-sec-dispatcher
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,7 +30,7 @@ Source100: %{name}-build.xml
BuildRequires: ant
BuildRequires: atinject
BuildRequires: fdupes
-BuildRequires: java-devel >= 1.7
+BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
BuildRequires: modello >= 2.0.0
BuildRequires: plexus-cipher
@@ -73,7 +73,7 @@ install -dm 0755 %{buildroot}%{_javadir}/plexus
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus
-%mvn_install_pom pom.xml %{buildroot}%{_mavenpomdir}/plexus/%{name}.pom
+%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/plexus/%{name}.pom
%add_maven_depmap plexus/%{name}.pom plexus/%{name}.jar -a org.sonatype.plexus:%{name}
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}