Debian Patches

Status for auto-value-gson-java/1.3.1-2

Patch Description Author Forwarded Bugs Origin Last update
remove-incap.patch Remove incap dependency The incap library (Incremental Annotation Processor Helpers) is used to
make the annotation processor incremental in Gradle. However, incap is
not packaged in Debian, and packaging it would introduce additional
complexity.
Since incremental compilation is an optimization that is not required
for building the Debian package (which is built once in a clean chroot),
we can safely strip the @IncrementalAnnotationProcessor annotation and the
dependency on incap without affecting functionality.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
disable-javadoc-links.patch Disable external Javadoc links Clear options.links in Javadoc tasks to prevent Gradle from attempting
to download package-list/element-list from external sites during offline
build.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
remove-tools-jar.patch Make tools.jar dependency conditional On JDK 9+, tools.jar does not exist and Jvm.current().getToolsJar() returns
null. Wrap the testImplementation files(toolsJar) call in a null check to
avoid NullPointerException during build configuration on modern JDKs.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
fix-test-jvm-args.patch Add exports to test JVM compile-testing uses JDK compiler internals. On JDK 9+, we must
explicitly export these packages to the unnamed module when running
tests, otherwise we get IllegalAccessError.
This patch configures the test task in all subprojects' JavaPlugin to
pass the required --add-exports arguments to the test JVM.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
remove-shadow-plugin.patch Disable shadow plugin to prevent fat jars The shadow plugin is used upstream to bundle and shade dependencies
(like auto-common and guava) inside the factory and extension jars,
producing "fat jars".
Bundling dependencies violates Debian Policy 4.13 ("Convenience copies
of code"). Debian packages must compile and install standard "thin" jars
and declare their dependencies in the package metadata to allow dynamic
linking against system-wide libraries.
This patch disables the shadow plugin, removes its bundling configurations,
restores the standard Gradle 'jar' task to compile thin jars, and converts
the 'compileShaded' dependencies to standard 'implementation' dependencies.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
gradle-4.4-compatibility.patch Adapt build files for Gradle 4.4 compatibility Debian's gradle-debian-helper runs the system-installed Gradle package,
which in this release is version 4.4.1.
Gradle 4.4.1 does not natively support the 'annotationProcessor' and
'testAnnotationProcessor' configurations (which were introduced in Gradle 4.6).
Attempting to use them causes immediate build failures.
This patch applies the 'net.ltgt.apt' (gradle-apt-plugin) to the extension,
factory, and example subprojects, and converts all 'annotationProcessor'
and 'testAnnotationProcessor' declarations to 'apt' and 'testApt' configurations.
This allows the annotation processors to compile correctly under Gradle 4.4.1
in the clean chroot build environment.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20
fix-tests-for-java9-plus.patch Fix unit tests for Java 9+ compatibility Under Java 9+, the code generator dynamically detects the platform capabilities
and generates the standard modern '@javax.annotation.processing.Generated' annotation
because the old '@javax.annotation.Generated' was deprecated in Java 9 and
completely removed in Java 11.
However, the unit tests have hardcoded expected source strings that still expect
the old Java 8 'import javax.annotation.Generated;'. Since the package build
is forced to run on Java 9+ (specifically Java 25 in this release), the tests fail
because of this import mismatch.
This patch updates the unit test expectations to expect the modern Java 9+ import
statement, aligning the test assertions with the actual generated code.

===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed 2026-06-20

All known versions for source package 'auto-value-gson-java'

Links