https://github.com/wsargent/sbt-rss
Simple SBT plugin showing RSS integration
https://github.com/wsargent/sbt-rss
Last synced: 8 months ago
JSON representation
Simple SBT plugin showing RSS integration
- Host: GitHub
- URL: https://github.com/wsargent/sbt-rss
- Owner: wsargent
- Created: 2014-06-20T05:44:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-09T02:36:19.000Z (about 11 years ago)
- Last Synced: 2025-02-01T04:11:06.301Z (8 months ago)
- Language: Scala
- Homepage: http://tersesystems.com/2014/06/24/writing-an-sbt-plugin/
- Size: 170 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SBT RSS
This is an SBT 0.13 plugin which uses AutoPlugin and the ROME libraries to
query websites for RSS feeds and display the titles inside SBT.This is a fairly simple SBT plugin, and has lots of comments to show how you can add a command to SBT.
## Building
You can build and publish the plugin in the normal way to your local Ivy repository:
```
sbt publish-local
```## Installation
You must first download the git project and build it. It is not available in the maven repository.
In `project/plugins.sbt`:
```
addSbtPlugin("com.typesafe.sbt" % "sbt-rss" % "1.0.0-SNAPSHOT")
```In `build.sbt`:
```
val myProject = (project in file(".")).enablePlugins(SbtRss)rssList := Seq(
"http://typesafe.com/blog/rss.xml",
"http://letitcrash.com/rss",
"https://github.com/akka/akka.github.com/commits/master/news/_posts.atom"
)
```## Usage
Once you have it installed, typing `rss` at an SBT prompt will show latest updates.
```
> rss
[info] Showing http://typesafe.com/blog/rss.xml
[info] Title = The Typesafe Blog
[info] Published = null
[info] Most recent entry = Scala Days Presentation Roundup
[info] Entry updated = null
[info] Showing http://letitcrash.com/rss
[info] Title = Let it crash
[info] Published = null
[info] Most recent entry = Reactive Queue with Akka Reactive Streams
[info] Entry updated = null
[info] Showing https://github.com/akka/akka.github.com/commits/master/news/_posts.atom
[info] Title = Recent Commits to akka.github.com:master
[info] Published = Thu May 22 05:51:21 EDT 2014
[info] Most recent entry = Fix fixed issue list.
[info] Entry updated = Thu May 22 05:51:21 EDT 2014
```Or, you can provide URLs on the command line.
```
> rss http://tersesystems.com/atom.xml
[info] Showing http://tersesystems.com/atom.xml
[info] Title = Terse Systems
[info] Published = Thu May 29 03:40:53 EDT 2014
[info] Most recent entry = Testing Hostname Verification
[info] Entry updated = Mon Mar 31 21:35:00 EDT 2014
```## Testing
Go to the `sbt-rss-tester` project in the github project and type `rss`.
```
cd sbt-rss-tester
sbt
rss
```
Type `rss` at an SBT prompt.