Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Gradle plugin to format a build.gradle file?

Is there a Gradle plugin that could format or check the format of my build.gradle files? My project is getting bigger with several subprojects and I would like to make them follow the same format/structure.

like image 765
Thiago Leão Moreira Avatar asked Jun 30 '16 21:06

Thiago Leão Moreira


People also ask

Which plugin allows to run Gradle builds?

You can have the Gradle Enterprise Gradle plugin and the Gradle Enterprise Maven extension automatically injected into your Gradle and Maven builds.

What is build Gradle plugin?

A plugin is simply any class that implements the Plugin interface. Gradle provides the core plugins (e.g. JavaPlugin ) as part of its distribution which means they are automatically resolved. However, non-core binary plugins need to be resolved before they can be applied.

How do I access the build Gradle file?

gradle file is located inside your project folder under app/build. gradle.


1 Answers

You can add a "user defined language" file, with the gradle syntax

  1. Download a gradle language-file. You may use this: https://gist.github.com/ksnortum/7568627
  2. Open the Notepad++. Go to "Menu -> Language -> Define Your Language"
  3. In the dialog, click "import", and select xml file
  4. Restart Notepad++
like image 81
Void Avatar answered Oct 15 '22 06:10

Void