ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. ProGuard can be run as a task in Gradle. Before you can use the proguard task, you have to make sure Gradle can find it in its class path at build time. One way is to add the following line to your build.gradle file which will download ProGuard from Maven Central. ProGuard works like an advanced optimizing compiler, removing unused classes, fields, methods, and attributes, shortening identifiers, merging classes, inlining methods, propagating constants, removing unused parameters, etc.

Features

  • The optimizations typically reduce the size of an application by anything between 20% and 90%
  • The optimizations may also improve the performance of the application, by up to 20%
  • ProGuard can also remove logging code, from applications and their libraries, without needing to change the source code
  • It detects and removes unused classes, fields, methods, and attributes
  • It optimizes bytecode and removes unused instructions
  • It renames the remaining classes, fields, and methods using short meaningless names

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

GNU General Public License version 3.0 (GPLv3)

Follow ProGuard

ProGuard Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ProGuard!

Additional Project Details

Programming Language

Java

Related Categories

Java Frameworks

Registered

2023-08-10