Andre's Blog

20160809 Generating RSS Feeds With Gradle And Groovy For This Blog

[WEB] [GRADLE] [RSS]

This blog has an RSS feed from now on, you can register this URL in your client :

http://www.wartbar.de/rss.xml

This page was a big help for me to start in finding out what to do :

Webmasterparadies.de : Eigenen RSS-Feed erstellen

And this has helped me to find out what was missing :

W3C Feed Validation Service

My RSS feed looks like this :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://www.wartbar.de/rss.xml" rel="self" type="application/rss+xml" />
<title>Wartbar.de RSS-Feed</title>
<link>http://www.wartbar.de</link>
<description>Home of Andre's Blog</description>
<language>de-de</language>
<copyright>2016 by Wartbar.de</copyright>
<item>
<title>Generating RSS Feeds With Gradle And Groovy</title>
<link>http://www.wartbar.de/index.html#generating-rss-feeds-with-gradle-and-groovy</link>
<description>A new blog post with the subject 'Generating RSS Feeds With Gradle And Groovy'</description>
<guid>http://www.wartbar.de/index.html#generating-rss-feeds-with-gradle-and-groovy</guid>
<pubDate>Tue, 9 Aug 2016 00:00:00 +0200</pubDate>
</item>
<item>
<title>Why I Write Shell Scripts With Gradle And Groovy</title>
<link>http://www.wartbar.de/index.html#why-i-write-shell-scripts-with-gradle-and-groovy</link>
<description>A new blog post with the subject 'Why I Write Shell Scripts With Gradle And Groovy'</description>
<guid>http://www.wartbar.de/index.html#why-i-write-shell-scripts-with-gradle-and-groovy</guid>
<pubDate>Thu, 4 Aug 2016 00:00:00 +0200</pubDate>
</item>
<item>
<title>A Blog About Using Gradle</title>
<link>http://www.wartbar.de/index.html#a-blog-about-using-gradle</link>
<description>A new blog post with the subject 'A Blog About Using Gradle'</description>
<guid>http://www.wartbar.de/index.html#a-blog-about-using-gradle</guid>
<pubDate>Sun, 31 Jul 2016 00:00:00 +0200</pubDate>
</item>
...
<item>
<title>Technical Realization Of This Blog</title>
<link>http://www.wartbar.de/index.html#technical-realization-of-this-blog</link>
<description>A new blog post with the subject 'Technical Realization Of This Blog'</description>
<guid>http://www.wartbar.de/index.html#technical-realization-of-this-blog</guid>
<pubDate>Tue, 16 Feb 2016 00:00:00 +0100</pubDate>
</item>
</channel>
</rss>

I am not 100% sure if every client takes the URL of a blog post from <link> or <guid>, but as long as <guid> is unique this should be ok.

I generate this RSS feed with a Gradle task calling some Groovy code.

If you are interested in the code, please find it here in my Gradle blog :

Andre's Technical Blog About Using Gradle

Select where to go ...


The Blog
My Technical Blogs
Projects
Blogs Of Friends
RSS
CV/About
Me