The (unofficial) Fabric home for 1.2.5 and Beta 1.7.3 - if you want the newer versions see here.
./gradlew eclipse
NOTE: if you want sources (recommended), instead run
./gradlew rebuildLVT genSources eclipse
Once your mod is complete and ready for use it can be compiled and reobfuscated with:
./gradlew build
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.