A giter8 template for creating the sbt-tweeter plugin, which allows users to publish Twitter status updates from the sbt console.
Developed for the sbt: Beyond the Build Tool workshop given at flatMap(Oslo) 2017.
We will be utilizing the sbt new
command, so please ensure that you are installing, or have installed, sbt version 0.13.13 or greater. At the time of this writing, the latest version of sbt is 0.13.15.
- Evaluate the giter8 template
Use the sbt new
command (or g8
, if preferred) to evaluate the sbt-tweeter.g8 template.
sbt new Tapad/sbt-tweeter.g8
While this is not strictly necessary for plugin development, it will reduce the amount of boilerplate required given a time constrained workshop.
- Create a Twitter application and generate your access token(s)
You can do so at https://apps.twitter.com. It will require a valid Twitter account.
Although the steps to create an application are super simple, the guide available at http://docs.inboundnow.com/guide/create-twitter-application is extremely helpful and thorough if you should have any trouble.
Once you create your application and generate your access tokens, please ensure that your application and access token Access Type is set to Read & Write.
After evaluating the template, invoke sbt from the generated project.
The README.md of the generated project will contain the necessary information for extending, testing, and releasing your derived project.