You need to associate ‘.gradle’ extension with groovy as follows:
- First if not done already, install groovy textmate bundle from http://groovy.codehaus.org/TextMate
- In Textmate, open “Bundles –> Bundle Editor –> Edit Languages –> Groovy” and change as follows:
[groovy]
fileTypes = ( ‘groovy’, ‘gvy’);
[/groovy]
to
[groovy]
fileTypes = ( ‘groovy’, ‘gvy’, ‘gradle’ );
[/groovy]
In order to run gradle scripts from Textmate use bundle from https://github.com/alkemist/gradle.tmbundle