Emmanuel Bourg pushed to branch debian/latest at Debian Java Maintainers / 
auto-value-gson-java


Commits:
dab4cf7c by Emmanuel Bourg at 2026-11-12T16:44:23+01:00
Fixed the build failure with Truth 1.x

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/truth-compatibility.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+auto-value-gson-java (1.3.1-5) unstable; urgency=medium
+
+  * Team upload.
+  * Fixed the build failure with Truth 1.x
+
+ -- Emmanuel Bourg <[email protected]>  Thu, 12 Nov 2026 16:44:14 +0100
+
 auto-value-gson-java (1.3.1-4) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/series
=====================================
@@ -7,3 +7,4 @@ gradle-4.4-compatibility.patch
 fix-tests-for-java9-plus.patch
 depends-on-jsr305.patch
 gradle-compatibility.patch
+truth-compatibility.patch


=====================================
debian/patches/truth-compatibility.patch
=====================================
@@ -0,0 +1,25 @@
+Description: Replace the named() method removed in Truth 1.0 with 
assertWithMessage()
+Author: Emmanuel Bourg <[email protected]>
+Forwarded: no
+--- 
a/auto-value-gson-extension/src/test/java/com/ryanharter/auto/value/gson/AutoValueGsonExtensionTest.java
++++ 
b/auto-value-gson-extension/src/test/java/com/ryanharter/auto/value/gson/AutoValueGsonExtensionTest.java
+@@ -26,6 +26,7 @@
+ 
+ import static com.google.common.truth.Truth.assertAbout;
+ import static com.google.common.truth.Truth.assertThat;
++import static com.google.common.truth.Truth.assertWithMessage;
+ import static com.google.testing.compile.CompilationSubject.compilations;
+ import static com.google.testing.compile.Compiler.javac;
+ import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;
+@@ -2586,9 +2587,9 @@
+     nullables.put("using type-target @Nullable", typeTargetNullable);
+     nullables.forEach(
+         (nullableName, nullableObject) -> {
+-          assertAbout(javaSources())
++          assertWithMessage(nullableName)
++              .about(javaSources())
+               .that(Arrays.asList(nullableObject, source))
+-              .named(nullableName)
+               .withCompilerOptions("-A" + 
AutoValueGsonExtension.USE_FIELD_NAME_POLICY)
+               .processedWith(
+                   new AutoValueProcessor(Lists.newArrayList(new 
AutoValueGsonExtension())))



View it on GitLab: 
https://salsa.debian.org/java-team/auto-value-gson-java/-/commit/dab4cf7c7988aeef385bc0049fa3bff4a487a56f

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/auto-value-gson-java/-/commit/dab4cf7c7988aeef385bc0049fa3bff4a487a56f
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to