diff --git a/opentest4j-build.xml b/opentest4j-build.xml
index 3872b54..3e7feec 100644
--- a/opentest4j-build.xml
+++ b/opentest4j-build.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/opentest4j.changes b/opentest4j.changes
index c300493..300143a 100644
--- a/opentest4j.changes
+++ b/opentest4j.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Mon Mar 21 12:40:23 UTC 2022 - Fridrich Strba
+
+- Build with java source and target levels 8
+
-------------------------------------------------------------------
Thu Apr 2 07:06:55 UTC 2020 - Fridrich Štrba
diff --git a/opentest4j.spec b/opentest4j.spec
index 731f7fa..40d1743 100644
--- a/opentest4j.spec
+++ b/opentest4j.spec
@@ -1,7 +1,7 @@
#
# spec file for package opentest4j
#
-# 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
@@ -29,6 +29,7 @@ Source1: %{name}-build.xml
Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
BuildRequires: ant
BuildRequires: fdupes
+BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildArch: noarch
%if %{with tests}