DevOps / Gradle8 Interview Questions
What is the purpose of gradle.properties?
gradle.properties holds build-wide settings and values that shouldn't be hard-coded inside build.gradle itself — JVM memory options for the daemon, feature flags like enabling the configuration cache, or project-specific properties consumed by the build script.
org.gradle.jvmargs=-Xmx2g org.gradle.parallel=true org.gradle.configuration-cache=true myapp.version=1.4.0
It can exist at the project root (checked in, shared by the whole team) and separately in the user's home directory (~/.gradle/gradle.properties) for machine-specific or secret values that shouldn't be committed, like credentials. Project-root properties are the natural place for team-wide performance settings (parallel execution, caching flags), while the home-directory file is where individual developers keep local overrides or private tokens.
More Related questions...
