Adding build data to /application/info

One of the biggest issues in getting to the heart of problems is knowing what version is running! Have you ever gotten a 3:00 a.m. call from a customer reporting that the system is broken? In a half-awake state, it's easy to start trying to solve the problem only to discover two hours later, the customer is running an older version and that their issue was patched last week.

The solution is embedding precise versions in every release so that the customer can relay this over the phone. Then, we can quickly figure out if this issue is new, fixed, or a regression. Interested?

Just add this to the build.gradle file, right below the buildscripts section:

 id "com.gorylenko.gradle-git-properties" version "1.4.17" ...

Get Learning Spring Boot 2.0 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.