From 004253d47da87e86a8bab68dc80c8c55cc1f47fe Mon Sep 17 00:00:00 2001 From: Didik Supriadi Date: Sat, 9 Apr 2022 10:15:14 +0000 Subject: [PATCH] Set javac compiler release to Java 8 --- mockito.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mockito.spec b/mockito.spec index 1681844..96d1854 100644 --- a/mockito.spec +++ b/mockito.spec @@ -2,7 +2,7 @@ Name: mockito Version: 3.12.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Tasty mocking framework for unit tests in Java License: MIT URL: https://site.mockito.org/ @@ -111,7 +111,7 @@ EOF %build # See the usage of exec-maven-plugin in the pom mkdir -p target/classes/ -javac -d target/classes/ src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java +javac --release 8 -d target/classes/ src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java mv target/classes/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.{class,raw} %mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 @@ -128,7 +128,7 @@ cd - cd subprojects/junit-jupiter mkdir -p target/classes/ CLASSPATH=$(build-classpath apiguardian junit5/junit-jupiter-api junit5/junit-platform-commons) -javac -d target/classes/ \ +javac --release 8 -d target/classes/ \ -cp ../../target/mockito-core-%{version}.jar:$CLASSPATH \ src/main/java/org/mockito/junit/jupiter/*.java jar -cf ../../target/mockito-junit-jupiter.unwrapped.jar -C target/classes org @@ -157,6 +157,9 @@ bnd wrap --properties osgi-junit-jupiter.bnd --version %{version} \ %license LICENSE %changelog +* Sat Apr 09 2022 Didik Supriadi - 3.12.4-4 +- Set javac compiler release to Java 8 + * Sat Feb 05 2022 Jiri Vanek - 3.12.4-3 - Rebuilt for java-17-openjdk as system jdk