Releases: jirkapinkas/jsitemapgenerator
Releases · jirkapinkas/jsitemapgenerator
version 3.11
Simplified usage of images and alternate pages. Their use is now automatically detected so that it's unnecessary to use special constructor in order to use them.
version 3.10
Not much, mostly documentation cleanup
version 3.8
- rewrote logic of defaultXXX() methods (on SitemapGenerator) so that it's much more flexible, applies to all following WebPages and can be overriden later on (example is in README.md)
version 3.7
- generation of robots.txt file
- more functional style of programming
- more helper methods on generators and builders
- WebPage.of() method, which is the simplest way how to create WebPage
- updated documentation to present new features
version 3.6
- Alternate links support: #10
- Added Automatic-Module-Name to MANIFEST.MF
version 3.5
- generation of GZIP sitemap
- renamed several helper methods introduced in previous versions in order to simplify their names
version 3.4
- Lots of new helper methods so that creation of SitemapGenerator & WebPage is much simpler
- Escaping special XML characters in sitemap
- Fixed bug in closing okhttp Response
version 3.3
Fixed terrible bug in RSS ordering introduced in 3.0
version 3.2
Deprecated *Generator constructors, instead promote usage of of() methods to create *Generator objects. Example:
SitemapGenerator.of("http://www.javavids.com")
.addPage(WebPage.builder().nameRoot().priorityMax().changeFreqNever().lastModNow().build())
.addPages(urls, page -> WebPage.builder().name("dir/" +
page).priorityMax().changeFreqNever().lastModNow().build())
.constructAndSaveSitemap(file);
Also added to RssItemBuilder methods: titleCdata and descriptionCdata, which automatically surround content with CDATA
version 3.1
Added method addPages(Collection, Function), which simplifies population of sitemap using functional style of programming:
File file = new File("/var/www/sitemap.xml");
List<String> pages = Arrays.asList("firstPage", "secondPage", "otherPage");
// create web sitemap for web http://www.javavids.com
new SitemapGenerator("http://www.javavids.com")
.addPage(WebPage.builder().nameRoot().priorityMax().changeFreqNever().lastModNow().build())
.addPages(urls, page -> WebPage.builder().name("dir/" + page).priorityMax().changeFreqNever().lastModNow().build())
.constructAndSaveSitemap(file);
Also on WebPageBuilder added nameRoot() method, which is short hand for name("")