Safeguard
Tag

Developer Tools

Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.

2876 articles

Developer Tools

Are Gradle SNAPSHOT and changing modules safe to ship with?

No. A SNAPSHOT or changing module keeps one version string while its contents change, so builds are not reproducible. Use dependency locking if you must.

Oct 18, 20263 min read
Developer Tools

Who should be allowed to write to a Gradle remote build cache?

Only CI should write to a Gradle remote build cache while developers read from it. Keep HTTPS certificate checks on and treat entries as trusted output.

Oct 18, 20263 min read
Developer Tools

Gradle platform or enforcedPlatform: which one should I use?

platform gives BOM versions as raisable recommendations; enforcedPlatform makes them strict. Use platform for libraries and enforcedPlatform for apps.

Oct 18, 20263 min read
Developer Tools

Gradle platform vs enforcedPlatform: what does a BOM actually enforce?

In Gradle, platform() treats BOM versions as recommendations and enforcedPlatform() makes them strict. Learn which to use in an Android app and why.

Oct 18, 20263 min read
Developer Tools

What is Gradle Module Metadata, and what do POM-only tools miss?

Gradle Module Metadata is published beside the POM and adds variants and constraints. POM-only tools still work in degraded mode and can hide detail.

Oct 18, 20263 min read
Developer Tools

Can a Gradle init script change where my build gets dependencies?

Yes. Gradle init scripts run before settings and project scripts and can add repositories to every build. Know where they load from and who controls them.

Oct 18, 20263 min read
Developer Tools

How do I stop Gradle fetching my private groups from public repos?

Use Gradle repository content filtering: includeGroup on the private repository and exclusiveContent so only it can serve your internal groups.

Oct 18, 20264 min read
Developer Tools

Why are Gradle dynamic versions risky in mobile app releases?

Selectors like 5.+ can pull new library code into a mobile release without any change in your repo. Why that matters and how dependency locking fixes it.

Oct 18, 20263 min read
Developer Tools

How do I see why Gradle picked a dependency version?

Use the Gradle dependencyInsight task to list every path to a dependency and why its version was chosen, then fix the version that carries the flaw.

Oct 18, 20263 min read
Developer Tools

How do I find which Gradle dependency pulls in a vulnerable library?

Use the Gradle dependencies and dependencyInsight tasks to trace a vulnerable library to the dependency that requires it. Steps for Java and Kotlin.

Oct 18, 20263 min read
Developer Tools

How do Gradle dependency constraints and the because clause work?

Gradle constraints raise a transitive version without adding a direct dependency, and because documents why. A short how to for patching and later audits.

Oct 18, 20263 min read
Developer Tools

How do I force a fixed version of a transitive Gradle dependency?

Use a Gradle dependency constraint to raise a transitive library to a fixed version without adding it as a direct dependency. Kotlin DSL example, limits.

Oct 18, 20263 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.