No Gradle file syntax highlighting in Eclipse Mars.2


Wondering if anyone else met with the same issue, I open gradle file in Eclipse (Version: Mars.2 Release (4.5.2)), there is no highlights for gradle syntax. I install Gradle plug-in for Eclipse from <a href="http://projects.eclipse.org/projects/tools.buildship/downloads" rel="nofollow">http://projects.eclipse.org/projects/tools.buildship/downloads</a>.

I tried the same plug-in in Eclipse 4.4.1, but no such issues. Any advice is appreciated.

It seems I have installed a few Gradle plug-in. Post my screen snapshots.

<a href="https://i.stack.imgur.com/aTIr9.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/aTIr9.png" data-original="https://i.stack.imgur.com/aTIr9.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Post my show view screen snapshots,

<a href="https://i.stack.imgur.com/UMM6l.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/UMM6l.png" data-original="https://i.stack.imgur.com/UMM6l.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>


Just tried in Eclipse 4.4.2: No syntax highlighting. Maybe you have the <a href="https://marketplace.eclipse.org/content/gradle-ide-pack" rel="nofollow">Gradle IDE Pack by Nodeclipse/Enide</a> installed in your 4.4.1?

Update: So I just saw you have <strong>both</strong> buildship and the Gradle IDE Pack installed. This will install multiple editors for .gradle files:

<ol><li>"Gradle Build Script Editor" (buildship, on the left)</li> <li>"Minimalist Gradle Editor" (Gradle IDE Pack, on the right)</li> </ol>

<a href="https://i.stack.imgur.com/c4RbB.png" rel="nofollow"><img alt="Editor comparison" class="b-lazy" data-src="https://i.stack.imgur.com/c4RbB.png" data-original="https://i.stack.imgur.com/c4RbB.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

To open a .gradle file with another type of editor, right-click the file and select "Open With": <a href="https://i.stack.imgur.com/muvCE.png" rel="nofollow"><img alt="open-with context menu" class="b-lazy" data-src="https://i.stack.imgur.com/muvCE.png" data-original="https://i.stack.imgur.com/muvCE.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

<hr />

I advise against using multiple Gradle plugins, as you can get confused by which plugin does what. You should stick with the one that suits you best.


This is not implemented in buildship yet. See discussion here <a href="https://discuss.gradle.org/t/gradle-build-script-editor/12079" rel="nofollow">https://discuss.gradle.org/t/gradle-build-script-editor/12079</a>.

Use either the Groovy editor or the Nodeclipse Minimalist editor (<a href="http://www.nodeclipse.org/projects/gradle/" rel="nofollow">http://www.nodeclipse.org/projects/gradle/</a>).


I would recommend to replace IDE pack and minimalist editor with <a href="https://marketplace.eclipse.org/content/egradle-editor" rel="nofollow">egradle</a> editor that features both syntax highlight and can also show something meaningful in the outline view. At the time of writing under Eclipse Oxygen none of the other two mentioned editors are capable of this.

I only Eclipse to edit gradle build files as part of the project. If I need to run them, I use terminal.


  • groovy web services
  • Remove flickering from TSpeedButton
  • JAX-B - How to map a schema element to an existing Java class [duplicate]
  • DateTime::createFromFormat - php format issue
  • How to add text to textarea when user clicks a button
  • finish() not working in closing the activity
  • Stripping value in PS and comparing if it is an integer value
  • Angular sum dynamic data from *ngFor loop to get total, subtotal and vat value (%16)
  • Applying jQuery live() to the to dynamically generated elements
  • How multiple executors are managed on the worker nodes with a Spark standalone cluster?
  • PHP: Cookie in browser, but receive index undefined error
  • Continue service when app is killed
  • Multiple Left Joins - how to?
  • MySQL Convert String To Date Calculate Age And Order BY Age
  • BigQuery Help - How to cast and convert to float and date format
  • How do I convert a complex json object to CLR object with json.net?
  • Fetch data from nested nodes in Firebase
  • CameraPreviewImageSource empty preview frame
  • Limit # of records returned based on a form control
  • ClearCase can I use clearexport_ccase/clearimport to copy VOB data to a VOB on a different machine
  • Adding custom message on Thank You page by shipping method
  • How to read contents of a directory recursively in Linux Kernel?
  • How can I access the Google account user_id?
  • Eric5: The OK button of 'new project' dialog is disable
  • Expression.Call GroupBy then Select and Count()?
  • Querying Elasticsearch Address Based Index
  • didSelectItemAtIndexPath of UICollectionView inside of a UIScrollView is not getting called
  • How to convert days into months using datetime in Python3?
  • Protractor Page objects - TypeError: Object # has no method 'methodName'
  • How can I filter an array of dictionaries in 'updateSearchResultsForSearchController' to s
  • How to define a custom accuracy in Keras to ignore samples with a particular gold label?
  • How to use Typescript with libraries like Ampersand.js that parse configs to build prototypes
  • Excel File upload in asp.net using SqlBulkCopy
  • how do i compare two rows and store the similarities of the two rows in another column
  • JavaScript Regex to Match Boundaries of Words with diacritics
  • how to run ejabberd with Erlang on Heroku?
  • How to specify generic type when the type is only known at runtime?
  • Did not understand process of initialize in swift programming
  • How to encrypt Connectionstring written in web.config from codebehind?
  • Time Complexity of Fibonacci Algorithm [duplicate]