Developer Tools
Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.
2876 articles
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.