2023-04-13 07:10:18 +02:00

1.2 KiB

Building ProGuard

!!! info

**ProGuard** is distributed under the terms of the GNU General Public License. Please consult the [license page](license/license.md) for more details.

Building ProGuard is easy - you'll need:

  • a Java 8 JDK installed
  • a clone of the ProGuard repository

You can then execute a composite build with the following Gradle command:

=== "Linux/macOS" bash ./gradlew assemble

=== "Windows" bash gradlew assemble

The artifacts will be generated in the lib directory. You can then execute ProGuard using the scripts in bin, for example:

=== "Linux/macOS"

```bash
bin/proguard.sh
```

=== "Windows"

```bash
bin\proguard.bat
```

Publish to Maven local

You can publish the artifacts to your local Maven cache (something like ~/.m2/):

=== "Linux/macOS" bash ./gradlew publishToMavenLocal

=== "Windows" bash gradlew publishToMavenLocal

Building a release distribution

You can build tar and zip archives with the binaries and documentation:

=== "Linux/macOS"

```bash
./gradlew distTar distZip
```

=== "Windows"

```bash
gradlew distTar distZip
```