Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maven_dependencies #24

Open
wants to merge 1 commit into
base: 1.18
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 6, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.guava:guava 31.0.1-jre -> 31.1-jre age adoption passing confidence
com.google.truth:truth 1.1.3 -> 1.4.4 age adoption passing confidence
com.google.code.findbugs:jsr305 (source) 3.0.1 -> 3.0.2 age adoption passing confidence
com.blamejared.crafttweaker:Crafttweaker_Annotation_Processors 3.0.0.5 -> 3.0.0.16 age adoption passing confidence
com.faux.ingredientextension:IngredientExtensionAPI-fabric-1.18.2 2.0.5 -> 2.0.9 age adoption passing confidence
org.javassist:javassist (source) 3.28.0-GA -> 3.30.2-GA age adoption passing confidence
org.spongepowered:mixin (source) 0.8.5-SNAPSHOT -> 0.8.7 age adoption passing confidence
mezz.jei:jei-1.18.2 9.5.2.133 -> 9.7.2.1001 age adoption passing confidence
org.parchmentmc.data:parchment-1.18.2 2022.03.13 -> 2022.11.06 age adoption passing confidence
org.spongepowered:mixin (source) 0.8.4 -> 0.8.7 age adoption passing confidence
com.blamejared.modtemplate 3.0.0.37 -> 3.0.0.40 age adoption passing confidence
net.darkhax.curseforgegradle 1.0.9 -> 1.1.25 age adoption passing confidence
org.spongepowered.mixin 0.7-SNAPSHOT -> 0.7.38 age adoption passing confidence
com.diluv.schoomp:Schoomp 1.2.5 -> 1.2.6 age adoption passing confidence
me.shedaniel:RoughlyEnoughItems-default-plugin-fabric 8.0.442 -> 8.4.778 age adoption passing confidence
me.shedaniel:RoughlyEnoughItems-fabric 8.0.442 -> 8.4.778 age adoption passing confidence
me.shedaniel:RoughlyEnoughItems-api-fabric 8.0.442 -> 8.4.778 age adoption passing confidence
fabric-loom 0.12-SNAPSHOT -> 0.13.20 age adoption passing confidence

Release Notes

google/truth (com.google.truth:truth)

v1.4.4

  • Annotated the rest of the main package for nullness, and moved the @NullMarked annotation from individual classes up to the package to avoid a warning under --release 8. (e107aea)
  • Improved the failure message for matches to conditionally suggest using containsMatch. (7e9fc7a)

v1.4.3: 1.4.3

Known Issue for at least some builds targeting Java 8, fixed in 1.4.4: "unknown enum constant ElementType.MODULE": https://github.com/google/truth/issues/1320. As far as we know, this is only a warning, so it should cause practical problems only if you use -Werror or you perform reflection on @NullMarked under a Java 8 runtime.

  • Added more nullness information to our APIs (in the form of JSpecify annotations). This could lead to additional warnings (or even errors) for users of Kotlin and other nullness checkers. Please report any problems. (ee680cb)
  • Deprecated Subject.Factory methods for Java 8 types. We won't remove them, but you can simplify your code by migrating off them: Just replace assertAbout(foos()).that(foo) with assertThat(foo) (or about(foos()).that(foo) with that(foo)). (59e7a50)

v1.4.2: 1.4.2

This release is the final step of copying all our methods from Truth8 to Truth. If you have not already migrated your usages from Truth8 to Truth, you may see build errors:

OptionalSubjectTest.java:39: error: reference to assertThat is ambiguous
    assertThat(Optional.of("foo")).isPresent();
    ^
  both method assertThat(@&#8203;org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth8 and method assertThat(@&#8203;org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth match

In most cases, you can migrate your whole project mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'. (You can make that change before upgrading to Truth 1.4.2 or as part of the same commit.)

If you instead need to migrate your project incrementally (for example, because it is very large), you may want to upgrade your version of Truth incrementally, too, following our instructions for 1.3.0 and 1.4.0.

For help

Please feel welcome to open an issue to report problems or request help.

Changelog

  • Removed temporary type parameters from Truth.assertThat(Stream) and Truth.assertThat(Optional). This can create build errors, which you can fix by replacing all your references to Truth8 with references to Truth. (45782bd)

v1.4.1: 1.4.1

This release deprecates Truth8.

All its methods have become available on the main Truth class. In most cases, you can migrate your whole project mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'

While we do not plan to delete Truth8, we recommend migrating off it, at least if you static import assertThat: If you do not migrate, such static imports will become ambiguous in Truth 1.4.2, breaking your build.

v1.4.0: 1.4.0

In this release, our assertions on Java 8 types continue to move from the Truth8 class to the main Truth class. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without API desugaring. Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.

This release is likely to lead to more build failures than 1.3.0 did. However, those failures should be straightforward to fix.

Example build failure

Foo.java:152: error: reference to assertThat is ambiguous
    assertThat(repo.findFileWithName("foo")).isNull();
    ^
  both method assertThat(@&#8203;org.checkerframework.checker.nullness.qual.Nullable Path) in Truth8 and method assertThat(@&#8203;org.checkerframework.checker.nullness.qual.Nullable Path) in Truth match

Simplest upgrade strategy (if you can update all your code atomically in the same commit as the Truth upgrade)

In the same commit:

  1. Upgrade Truth to 1.4.0.
  2. Replace import static com.google.common.truth.Truth8.assertThat; with import static com.google.common.truth.Truth.assertThat;.
    • If you use Kotlin, replace import com.google.common.truth.Truth8.assertThat with import com.google.common.truth.Truth.assertThat.
  3. Replace import com.google.common.truth.Truth8; with import com.google.common.truth.Truth;.
    • again, similarly for Kotlin if needed
  4. Optionally replace remaining references to Truth8 with references to Truth.
    • For example, replace Truth8.assertThat(optional).isPresent() with Truth.assertThat(optional).isPresent().

If you're feeling lucky, you can try this one-liner for the code updates:

git grep -l Truth8 | xargs perl -pi -e 's/import static com.google.common.truth.Truth8.assertThat;/import static com.google.common.truth.Truth.assertThat;/g; s/import com.google.common.truth.Truth8.assertThat/import com.google.common.truth.Truth.assertThat/g; s/import com.google.common.truth.Truth8/import com.google.common.truth.Truth/g; s/\bTruth8[.]/Truth./g;'

In most cases, that can be further simplified to:

git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'

After that process, it is possible that you'll still see build errors from ambiguous usages of assertThat static imports. If so, you can find a workaround in the section about overload ambiguity in the release notes for 1.3.0. Alternatively, you can wait to upgrade until after a future Truth release, which will eliminate the ambiguity by changing the signatures of some Truth.assertThat overloads.

Incremental upgrade strategy

If you have a very large repo or you have other reasons to prefer to upgrade incrementally, you can use the approach that we used inside Google. Roughly, that approach was:

  1. Make the optional changes discussed in the release notes for 1.3.0.
  2. For any remaining calls to Truth8.assertThat, change them to avoid static import.
    • That is, replace assertThat(optional).isPresent() with Truth8.assertThat(optional).isPresent().
  3. Upgrade Truth to 1.4.0.
  4. Optionally replace references to Truth8 with references to Truth (including restoring static imports if desired), as discussed in section about the simple upgrade strategy above.

Optional additional changes

  • If you use assertWithMessage(...).about(intStreams()).that(...), expect.about(optionalLongs()).that(...), or similar, you can remove your call to about. This change will never be necessary; it is just a simplification.
    • This is similar to a previous optional change from 1.3.0, except that 1.3.0 solved this problem for streams and optionals, whereas 1.4.0 solves it for the other Truth8 types.

For help

Please feel welcome to open an issue to report problems or request help.

Changelog

  • Added the remaining Truth8.assertThat overloads to the main Truth class. (9be8e77, 1f81827)
  • Added more that overloads to make it possible to write type-specific assertions when using the remaining Java 8 types. (7c65fc6)

v1.3.0: 1.3.0

In this release, our assertions on Java 8 types begin to move from the truth-java8-extensions artifact and the Truth8 class to the main truth artifact and the Truth class. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without API desugaring. Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.

This change will be routine for most users, but we're providing as much information as we can for any users who do encounter problems.

We will post fuller instructions for migration later on, once we've learned more from our internal migration efforts. For now, you may find that you need to make one kind of change, and you may elect to make others. (If we missed anything, please open an issue to report problems or request help.)

The change you might need to make:

  • By adding new overloads of Truth.assertThat, we cause some code to fail to compile because of an overload ambiguity. This is rare, but it can happen if you static import both Truth.assertThat and some other assertThat method that includes overloads for Optional or Stream. (It does not happen for Truth8.assertThat, though, except with the Eclipse compiler. Nor it does necessarily happen for other assertThat(Stream) and assertThat(Optional) methods.) If this happens to you, you'll need to remove one of the static imports, changing the corresponding call sites from "assertThat" to "FooSubject.assertThat."
    • Alternatively, you may choose to wait until we make further changes to the new Truth.assertThat overloads. Once we make those further changes, you may be able to simultaneously replace all your imports of Truth8.assertThat with imports of Truth.assertThat as you upgrade to the new version, likely without introducing overload ambiguities.

The changes you might elect to make:

  • If you use Truth8.assertThat(Stream) or Truth8.assertThat(Optional), you can migrate to the new overloads in Truth. If you static import Truth8.assertThat, you can usually make this change simply by replacing that static import with a static import of Truth.assertThat—or, if you already have an import of Truth.assertThat, by just removing the import of Truth8.assertThat. (If you additionally use less common assertion methods, like assertThat(OptionalInt), you'll want to use both imports for now. Later, we'll move assertThat(OptionalInt) and friends, too.) We recommend making this change now, since your calls to Truth8.assertThat will fail to compile against some future version of Truth, unless you plan to wait to update your Truth dependency until we've made all our changes for Java 8 types.

  • If you use assertWithMessage(...).about(streams()).that(...), expect.about(optionals()).that(...), or similar, you can remove your call to about. This change will never be necessary; it is just a simplification.

  • If you depend on truth-java8-extension, you may remove it. All its classes are now part of the main truth artifact. This change, too, is not necessary; it is just a simplification. (OK, if your build system has a concept of strict deps, there is a chance that you'll need to add deps on truth to replace your deps on truth-java8-extension.)

Finally, the changelog for this release:

  • Made StreamSubject avoid collecting the Stream until necessary, and made its isEqualTo and isNotEqualTo methods no longer always throw. (f8ecaec)
  • Added assertThat overloads for Optional and Stream to the main Truth class. (37fd8be)
  • Added that overloads to make it possible to write type-specific assertions when using expect.that(optional) and expect.that(stream). (ca7e8f4)
  • Moved the truth-java8-extension classes into the main truth artifact. There is no longer any need to depend on truth-java8-extension, which is now empty. (We've also removed the Truth8 GWT module.) (eb0426e)

Again, if you have any problems, please let us know.

v1.2.0: 1.2.0

  • Fixed a bug that caused ProtoTruth to ignore the contents of unpacked Any messages. This fix may cause tests to fail, since ProtoTruth will now check whether the message contents match. If so, you may need to change the values that your tests expect, or there may be a bug in the code under test that had been hidden by the Truth bug. Sorry for the trouble. (8bd3ef6)
  • Added isWithin().of() support to IntegerSubject and LongSubject. (6464cb5, 0e99a27)

v1.1.5: 1.1.5

  • Updated Truth to depend on Guava 32.0.1. The previous Guava version, 32.0.0, contained a bug under Windows, which did not affect Truth's functionality but could cause problems for people who use Guava's I/O functionality in their codebase. Affected users can already manually update their Guava dependency to 32.0.1, but if they don't depend directly on Guava, they may find it easier to upgrade to this new Truth release instead.
  • Fixed IterableOfProtosSubject to produce a proper failure message instead of NPE when the actual value is null.

v1.1.4: 1.1.4

  • Updated Truth to build with -source 8 -target 8. This means that it no longer runs under Java 7 VMs. It continues to run under Android, even old versions, for all apps that have enabled support for Java 8 language features. (db5db24)
  • Updated Truth to depend on Guava 32.0.0. That release contains changes related to CVEs. Neither of the CVEs relates to any methods that are used by Truth, so this version bump is just about eliminating any warnings related to the old version and helping tools like Maven to select the newest version of Guava. (f8d4dbb, 99b1df8)
  • Added support for value of: method() to expect.that, matching the existing support for assertThat. (bd8efd0)
  • Enhanced IterableSubject.containsAtLeastElementsIn().inOrder() to print an extra line that shows only the expected elements in their actual order. (9da7dd1)
  • Annotated Truth for nullness. (2151add)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Apr 6, 2022
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 6 times, most recently from 81f154c to ff8b515 Compare April 14, 2022 03:42
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 10 times, most recently from 8b41cd2 to 5439004 Compare April 21, 2022 12:55
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 7 times, most recently from e7a85ad to ba91030 Compare April 28, 2022 12:48
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 6 times, most recently from 22790f1 to 611e88e Compare May 4, 2022 22:42
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from c20f99b to be3e3c5 Compare October 24, 2023 02:52
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from be3e3c5 to 3a43793 Compare November 14, 2023 20:15
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 3a43793 to 642211e Compare November 30, 2023 11:57
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 4 times, most recently from 4661b58 to faf852b Compare December 19, 2023 05:35
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 2 times, most recently from c880480 to 74c3d29 Compare December 25, 2023 05:44
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 74c3d29 to ecb22b5 Compare January 20, 2024 20:40
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from ecb22b5 to c4f8dbc Compare February 3, 2024 01:58
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from c4f8dbc to d5cea56 Compare February 17, 2024 05:26
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from d5cea56 to 32bfb8c Compare March 1, 2024 20:40
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 3 times, most recently from 203ec95 to 51a7c47 Compare April 17, 2024 17:57
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 2 times, most recently from a049264 to 524f0cf Compare April 29, 2024 20:53
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 524f0cf to 105304f Compare May 14, 2024 02:36
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 105304f to 89bb428 Compare May 23, 2024 05:50
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 89bb428 to 820ad25 Compare June 28, 2024 05:34
@renovate renovate bot force-pushed the renovate/maven_dependencies branch 2 times, most recently from 83f930f to 976a25f Compare July 13, 2024 08:59
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 976a25f to 8796ed8 Compare July 24, 2024 08:40
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 8796ed8 to 0f6dea8 Compare August 7, 2024 23:54
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 0f6dea8 to 009a494 Compare August 23, 2024 02:49
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from 009a494 to e21c3b0 Compare September 5, 2024 06:00
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from e21c3b0 to ba05c95 Compare September 17, 2024 20:49
@renovate renovate bot force-pushed the renovate/maven_dependencies branch from ba05c95 to 9351bda Compare September 25, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants