2021-12-20

It's time for a new blog

Replacing blogger with JBake and gradle

Good old times

It was nearly a decade ago when I first felt that I might need to write about the cool experiments I do on a blog or otherwise I will forget that they ever happened. And blogger served me well, but using its wysiwyg editor for code wasn't a pleasure - and I had plenty of code to share over the years! For this reason, my old blog posts contain a colored bunch of different ways of formatted code: Manually generated html-css-mixes from pages like hilite.me (which is especially bad when you have to alter the code again while writing), kotlin playground embeds, github gists, italic text ... screenshots? I hope not. It was time to have something better.

Too many options

Lord, there are so many static site generators, everyone claims to be better than the previous one. I won't try to objectively justify why I dimissed all of them, but I was certain I didn't have a good experience in the past with JavaScript, Ruby, Python or Go ecosystems, as there always was a massive amount of fiddling with local setups, paths and dependency, tool or operating system issues. To be exhaustive, I also made negative experience with Orchid, a static site generator written in Java.

And then, there is always that one ages old JVM library that does what you need and is stable. In this case, it's JBake. Take a look at the comperatively short and sober documentation that doesn't even try to be fancy. It's dead simple: You have content, you have templates, they get rendered, done. Would they leave out the bloated chapter 9.1, the documentation would be two thirds long.

And do you know what's the best? It's a JVM dependency. Which means besides using a precompiled executable, you can just use the dependency in whatever JVM execution environment you like. I am hinting at Gradle here. Gradle is best for automating any workflow you can imagine. But step by step, let's take a look how to use Gradle and JBake to create a blog in a future post.

Now I just want to state that I imported all posts from my old blog without content-related changes and did my best to keep the format in shape. Some needed to be translated, some links needed to be fixed.

And now, enjoy the new blog with me :)