From 3b4dc1e6a5ce328b59aa22cad11723d4a47d4e1c Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Nov 05 2021 14:47:58 +0000 Subject: Revert "Update java for 3.19.0" This reverts commit d6917b5fff25fbc3e7718cef40f1870a3c57c881. --- diff --git a/protobuf.spec b/protobuf.spec index 148b07c..2efe5dd 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -215,14 +215,15 @@ mv googletest-5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081/* third_party/googletest/ find -name \*.cc -o -name \*.h | xargs chmod -x chmod 644 examples/* %if %{with java} +%pom_remove_dep org.easymock:easymockclassextension java/pom.xml java/core/pom.xml java/lite/pom.xml java/util/pom.xml %pom_remove_dep com.google.errorprone:error_prone_annotations java/util/pom.xml -%pom_remove_dep com.google.j2objc:j2objc-annotations java/util/pom.xml +# These use easymockclassextension +rm java/core/src/test/java/com/google/protobuf/ServiceTest.java # Remove annotation libraries we don't have annotations=$( find -name '*.java' | - xargs grep -h -e '^import com\.google\.errorprone\.annotation' \ - -e '^import com\.google\.j2objc\.annotations' | + xargs grep -h -e '^import com\.google\.errorprone\.annotation' | sort -u | sed 's/.*\.\([^.]*\);/\1/' | paste -sd\| ) find -name '*.java' | xargs sed -ri \