leobenkel.com
SBT Plugin - How to make it, debug it, improve it? - Leo Benkel
Tutorial: How to make an SBT Plugin in Scala. You will find tips, commands, project structure, task vs setting, override task, execute code before or after.