Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created March 22, 2016 17:53
Show Gist options
  • Save diegopacheco/b69a2deb8838072b8822 to your computer and use it in GitHub Desktop.
Save diegopacheco/b69a2deb8838072b8822 to your computer and use it in GitHub Desktop.
Global configu for Gradle(Generate IDE(eclipse/Idea) files without change build.gradle)
# GOTO Your Home directory
cd /home/diego/.gradle 
touch init.gradle
vim init.gradle
allprojects {
  apply plugin: 'eclipse'
  apply plugin: 'idea'
}

Now in any project you can do $gradle eclipse or $gradle idea. This also works for ./gradlew scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment