Skip to content

dotanuki-labs/gradle-wrapper-validator

Repository files navigation

gradle-wrapper-validator

OSSF Best DeepSource CI Rust Latest Version Downloads License

A validator for gradle/wrapper jar binaries for your CI pipelines.

Why

This projects is a small and ergonomic re-implementation of gradle/wrapper-validator-action, intended to be used within any CI pipeline environment. The aforementioned project is great, but not quite portable outside Github. If you already use it on Github Workflows, there is no need to change!

If you are into CircleCI, Bitrise, TeamCity, GitlabCI or others, this project may be useful!

What

This tool will recursively walk the provided path and flag any gradle/gradle-wrapper.jar files with unknown checksums, exiting with success otherwise.

Installing

Note

This tool is compatible with macOS and Linux boxes, running over x86_64 or aarch64 hardware

Installing from crates.io (requires Rust / Cargo):

cargo install gwv

Installing with homebrew (macOS/Linux)

brew tap dotanuki-labs/taps
brew install gwv

One-off execution (current folder)

curl -sSf https://cdn.statically.io/gh/dotanuki-labs/gradle-wrapper-validator/main/run | bash

Using

If installed with Cargo or brew

gwv --path <path/to/gradle/projects>

One-off execution (custom folder)

curl -sSf https://cdn.statically.io/gh/dotanuki-labs/gradle-wrapper-validator/main/run |\
  bash -s -- <path/to/folder>

License

Copyright (c) 2024 - Dotanuki Labs - The MIT license