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
plugins {
id("se.eelde.build-optimizations") version "0.1.1"
}
./gradlew :publishMavenLocal
buildscript {
dependencies {
classpath("se.eelde.build-optimizations:se.eelde.build-optimizations.gradle.plugin:0.1.1")
}
}
apply(plugin= "se.eelde.build-optimizations")
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)