Skip to content

Releases: jirkapinkas/jsitemapgenerator

version 3.11

13 Jan 19:00
Compare
Choose a tag to compare

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

08 Jan 09:30
Compare
Choose a tag to compare

Not much, mostly documentation cleanup

version 3.8

28 Dec 17:50
Compare
Choose a tag to compare
  • 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

28 Dec 11:07
Compare
Choose a tag to compare
  • 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

27 Dec 19:09
Compare
Choose a tag to compare
  • Alternate links support: #10
  • Added Automatic-Module-Name to MANIFEST.MF

version 3.5

26 Dec 12:36
Compare
Choose a tag to compare
  • generation of GZIP sitemap
  • renamed several helper methods introduced in previous versions in order to simplify their names

version 3.4

26 Dec 11:39
Compare
Choose a tag to compare
  • 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

25 Dec 18:09
Compare
Choose a tag to compare

Fixed terrible bug in RSS ordering introduced in 3.0

version 3.2

25 Dec 12:47
Compare
Choose a tag to compare

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

25 Dec 10:14
Compare
Choose a tag to compare

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("")