.gradle
🔧 ConfigText-based

.gradle File — Gradle Build Script

text/x-groovy

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

GRADLE

Drop a .gradle file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-groovy

Quick Facts

Extension.gradle
Full NameGradle Build Script
MIME Typetext/x-groovy
CategoryConfig
TypeText-based (human-readable)
Typical Size500 B – 20 KB
First Appeared2007

What Is a .gradle File?

Gradle build scripts define project build configurations using a Groovy or Kotlin DSL (Domain Specific Language). Gradle is the default build system for Android applications and is widely used for Java, Kotlin, Scala, and Groovy projects. GRADLE files (typically build.gradle for Groovy or build.gradle.kts for Kotlin) define dependencies, plugins, tasks, source sets, compile options, and publishing configurations. Gradle combines the declarative dependency management of Maven with the flexibility of Ant's imperative scripting, providing a powerful and expressive build system. Key features include incremental compilation, build caching (including distributed cache), parallel execution, composite builds, and the Gradle Wrapper (gradlew) that ensures consistent Gradle versions across development environments. The dependency management system resolves transitive dependencies from Maven Central, Google's Maven repository, and custom repositories. Gradle's task graph model determines execution order and enables optimization through up-to-date checking and task avoidance. The Android Gradle Plugin extends Gradle with Android-specific build features including APK/AAB packaging, ProGuard/R8 code shrinking, build variants, and resource processing.

How to Open .gradle Files

IntelliJ IDEA
Android Studio
VS Code
vim
any text editor
gradle (execution)

Related File Extensions

More Config File Extensions

Other config formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.