Skip to content

A gradle plugin that will check to make sure some gradle performance optimizations are in place.

License

Notifications You must be signed in to change notification settings

erikeelde/gradle-optimization

Repository files navigation

Gradle build optimizations

A gradle plugin that will check to make sure some gradle performance optimizations are in place. It will automatically attach itself as a task to all gradle invocations and verify that no time is wasted waiting for builds without all optimizations enabled. Default configuration will crash if not all safe optimisations are in place.

Check for output in the gradle build logs for helpful tips and additional reading.

Plugin published here

Use it
plugins {
  id("se.eelde.build-optimizations") version "0.1.1"
}
Test it (locally):
./gradlew :publishMavenLocal
buildscript {
    dependencies {
        classpath("se.eelde.build-optimizations:se.eelde.build-optimizations.gradle.plugin:0.1.1")
    }
}

apply(plugin= "se.eelde.build-optimizations")

Specifics:

Dsl is here

buildOptimization {
    jvmXmx = "2GB"
    jvmXms = "500MB"
}

Checks are here

  • Require that daemon execution is enabled
  • Require that parallel execution is enabled
  • Require that builds are using gradle caches
  • Hint to enable configuration on demand
  • Default File encoding
  • Require a specific setting of jvmXmx (default -Xmx=2g)
  • Require a specific setting of jvmXms (default -Xms=500m)

About

A gradle plugin that will check to make sure some gradle performance optimizations are in place.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages