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 to Gradle 8.0.2 #743

Merged
merged 11 commits into from
Mar 9, 2023
Merged

Update to Gradle 8.0.2 #743

merged 11 commits into from
Mar 9, 2023

Conversation

msridhar
Copy link
Collaborator

@msridhar msridhar commented Mar 4, 2023

We had to update a couple other plugins and fix a couple of things in our Gradle build scripts to be compatible with Gradle 8. I tested that artifacts are built correctly when installed to Maven Local, but it's possible something weird will happen when cutting a real release (as I had to tweak some things related to the shadow plugin). Hopefully such issues, if any, will be surfaced when pushing a snapshot build.

@msridhar msridhar changed the title [WIP] Update to Gradle 8.0.1 Update to Gradle 8.0.1 Mar 4, 2023
@msridhar msridhar changed the title Update to Gradle 8.0.1 Update to Gradle 8.0.2 Mar 4, 2023
@msridhar msridhar marked this pull request as ready for review March 8, 2023 18:31
Copy link
Collaborator

@lazaroclapp lazaroclapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@msridhar msridhar merged commit 00adeaf into uber:master Mar 9, 2023
@msridhar msridhar deleted the gradle-8.0.1 branch March 9, 2023 17:05
lazaroclapp added a commit that referenced this pull request Jun 23, 2023
Without this change, the recent Gradle upgrade (#743) resulted in the
following error while trying to publish to maven central:

```
> Task :jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository' (type 'PublishToMavenRepository').
  - Gradle detected a problem with the following location: '/Users/lazaro/Uber/NullAway/jar-infer/jar-infer-cli/build/libs/jar-infer-cli-0.10.11.jar.asc'.
    
    Reason: Task ':jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository' uses this output of task ':jar-infer:jar-infer-cli:signMavenPublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':jar-infer:jar-infer-cli:signMavenPublication' as an input of ':jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository'.
      2. Declare an explicit dependency on ':jar-infer:jar-infer-cli:signMavenPublication' from ':jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository' using Task#dependsOn.
      3. Declare an explicit dependency on ':jar-infer:jar-infer-cli:signMavenPublication' from ':jar-infer:jar-infer-cli:publishShadowPublicationToLocalRepository' using Task#mustRunAfter.
```

This change fixes that issue and also upgrades
`com.vanniktech:gradle-maven-publish-plugin` to 0.21.0, the latest
compatible version (versions from 0.23.0 onwards don't seem to be
compatible with JDK8, and 0.22.0 gives a separate error).

Long term, we need to update the CI testing flow for publishing we added
in #768 to also cover jar signing workflows.
msridhar added a commit to msridhar/NullAway that referenced this pull request Jul 18, 2023
msridhar added a commit to msridhar/NullAway that referenced this pull request Jul 18, 2023
msridhar added a commit to msridhar/NullAway that referenced this pull request Jul 19, 2023
msridhar added a commit to msridhar/NullAway that referenced this pull request Jul 19, 2023
msridhar added a commit to msridhar/NullAway that referenced this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants