Set javac compiler release to Java 8
This commit is contained in:
parent
2a8999f790
commit
004253d47d
@ -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 <didiksupriadi41@fedoraproject.org> - 3.12.4-4
|
||||
- Set javac compiler release to Java 8
|
||||
|
||||
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.12.4-3
|
||||
- Rebuilt for java-17-openjdk as system jdk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user