diff --git a/apache-commons-net-build.xml b/apache-commons-net-build.xml
index b6ac1fd..da5df70 100644
--- a/apache-commons-net-build.xml
+++ b/apache-commons-net-build.xml
@@ -21,7 +21,7 @@
-
+
diff --git a/apache-commons-net.changes b/apache-commons-net.changes
index 54550be..a36c2a0 100644
--- a/apache-commons-net.changes
+++ b/apache-commons-net.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Fri Mar 18 18:50:33 UTC 2022 - Fridrich Strba
+
+- Build with source/target levels 8
+
-------------------------------------------------------------------
Thu Jan 9 08:32:51 UTC 2020 - Fridrich Strba
diff --git a/apache-commons-net.spec b/apache-commons-net.spec
index 63004a8..c6332c3 100644
--- a/apache-commons-net.spec
+++ b/apache-commons-net.spec
@@ -1,7 +1,7 @@
#
-# spec file for package apache-commons-net
+# spec file
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@ Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{sho
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
+BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} < %{version}-%{release}