.gradle Gradle script

Text & source code

MIME typetext/x-gradle
DescriptionGradle script
CategoryText & source code
Based ontext/x-groovy

Frequently asked questions

What is a .gradle file?

A .gradle file is a “Gradle script” (MIME type text/x-gradle).

How do I open a .gradle file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .gradle file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.gradle shows the guessed type.

Which format is .gradle based on?

Technically a .gradle file is a subtype of “Groovy source code” (text/x-groovy), so programs for that base format can often read it too.

Which MIME type belongs to .gradle?

The MIME type is text/x-gradle. In the Apache web server: AddType text/x-gradle .gradle; in nginx: types { text/x-gradle gradle; }.

Nearby entries