Building a Spring Boot server with Bazel
Spring is a very popular Java Framework that is often used to build servers. It’s widely used by many companies because it provides a rich toolbox that can help achieve a great variety of tasks.
In this article, we’re going to learn how to create a simple Spring server using Bazel as build system.
Building the server
If you have never used Bazel, I recommend you take a look at my introduction to Bazel to get familiar with it.
Spring has a tool called spring intializr
that helps create a Spring Boot project from scratch. The problem is that at the time of this writing it only supports Maven
and Gradle
.