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

chore: update lockfile tests #291

Merged
merged 1 commit into from
Sep 30, 2024
Merged

chore: update lockfile tests #291

merged 1 commit into from
Sep 30, 2024

Conversation

orsagie
Copy link
Contributor

@orsagie orsagie commented Sep 30, 2024

  • Tests written and linted
  • Documentation written
  • Commit history is tidy

What this does

Since the lockfile tests are dependent on latest available versions, they need to be updated every once in an while.

The new lockfile was generated by adding the following snippet to build.gradle

tasks.register('resolveAndLockAll') {
    notCompatibleWithConfigurationCache("Filters configurations at execution time")
    doFirst {
        assert gradle.startParameter.writeDependencyLocks : "$path must be run from the command line with the `--write-locks` flag"
    }
    doLast {
        configurations.findAll {
            // Add any custom filtering on the configurations to be resolved
            it.canBeResolved
        }.each { it.resolve() }
    }
}

Then run ./gradlew dependencies --write-locks in the fixture directory.

And don't forget to update the dep-graph.json

@orsagie orsagie requested a review from a team as a code owner September 30, 2024 08:55
@orsagie orsagie merged commit 756bc8e into main Sep 30, 2024
4 checks passed
@orsagie orsagie deleted the chore/update-lockfile-test branch September 30, 2024 11:52
@snyksec
Copy link

snyksec commented Oct 1, 2024

🎉 This PR is included in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants