%bcond_with bootstrap Name: error-prone-annotations Version: 2.28.0 Release: 1%{?dist} Summary: Error Prone annotations for Java static analysis License: Apache-2.0 URL: https://errorprone.info/ BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://github.com/google/error-prone/archive/v%{version}/error-prone-%{version}.tar.gz # POM for this submodule needs parent removed; use flattened version from Maven Central Source1: https://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/%{version}/error_prone_annotations-%{version}.pom %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local-openjdk25 %endif %description Annotations used by Error Prone, a static analysis tool for Java that catches common programming mistakes at compile time. This package contains only the annotations (e.g. @CheckReturnValue, @CanIgnoreReturnValue, @Immutable, @ForOverride), not the analysis tool itself. %prep %autosetup -p1 -n error-prone-%{version} %build mkdir -p target/classes javac -d target/classes -source 8 -target 8 \ $(find annotations/src/main/java -name '*.java' -not -name 'module-info.java') jar cf target/error_prone_annotations-%{version}.jar -C target/classes . %install %mvn_artifact %{SOURCE1} target/error_prone_annotations-%{version}.jar %mvn_install %files -f .mfiles %license COPYING %doc README.md %changelog * Mon Jun 01 2026 Miroslav Suchý - 2.28.0-1 - Initial package