Set javac compiler release to Java 8
This commit is contained in:
parent
2a8999f790
commit
004253d47d
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: mockito
|
Name: mockito
|
||||||
Version: 3.12.4
|
Version: 3.12.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Tasty mocking framework for unit tests in Java
|
Summary: Tasty mocking framework for unit tests in Java
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://site.mockito.org/
|
URL: https://site.mockito.org/
|
||||||
@ -111,7 +111,7 @@ EOF
|
|||||||
%build
|
%build
|
||||||
# See the usage of exec-maven-plugin in the pom
|
# See the usage of exec-maven-plugin in the pom
|
||||||
mkdir -p target/classes/
|
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}
|
mv target/classes/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.{class,raw}
|
||||||
|
|
||||||
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
|
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
|
||||||
@ -128,7 +128,7 @@ cd -
|
|||||||
cd subprojects/junit-jupiter
|
cd subprojects/junit-jupiter
|
||||||
mkdir -p target/classes/
|
mkdir -p target/classes/
|
||||||
CLASSPATH=$(build-classpath apiguardian junit5/junit-jupiter-api junit5/junit-platform-commons)
|
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 \
|
-cp ../../target/mockito-core-%{version}.jar:$CLASSPATH \
|
||||||
src/main/java/org/mockito/junit/jupiter/*.java
|
src/main/java/org/mockito/junit/jupiter/*.java
|
||||||
jar -cf ../../target/mockito-junit-jupiter.unwrapped.jar -C target/classes org
|
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
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.12.4-3
|
||||||
- Rebuilt for java-17-openjdk as system jdk
|
- Rebuilt for java-17-openjdk as system jdk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user