Weather Sensing Server is a Spring Boot server written in Java, built with Gradle, and backed by PostgreSQL 18. Containerization with Podman is used for deployment and is optional for local development.
| Dependency | Version |
|---|---|
| JDK | 25 |
| Spring Boot | 4.1.x |
| Gradle | 9.8.x (pinned by the Gradle wrapper) |
| PostgreSQL | 18 |
The Java toolchain uses Homebrew on macOS and SDKMAN! on Linux.
# `spring-boot` lives in Spring's tap, not in homebrew-core
brew tap spring-io/tap
brew install spring-boot gradle openjdk@25 postgresql@18
brew services start postgresql@18openjdk@25 is keg-only — to expose it to the system Java wrappers run:
sudo ln -sfn /opt/homebrew/opt/openjdk@25/libexec/openjdk.jdk \
/Library/Java/JavaVirtualMachines/openjdk-25.jdkInstall SDKMAN!, then Java 25, the Spring Boot CLI, and (optionally) Gradle:
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 25.0.5-tem # or check `sdk list java` for the newest 25.x build
sdk install springboot
sdk install gradle # optional — the Gradle wrapper pins 9.8.xPostgreSQL 18: Ubuntu / Debian (official PGDG repository):
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
sudo apt install postgresql-18Fedora 43+ (PostgreSQL 18 is the default version):
sudo dnf install postgresql-server postgresql-contrib
sudo postgresql-setup --initdb && sudo systemctl enable --now postgresqlOn Fedora ≤ 42, RHEL, or CentOS Stream, use the PGDG yum repository instead.
Verify on either platform:
java -version # should print a 25.x build
./gradlew buildContainers are managed with Podman.
- macOS:
Or install the GUI:
brew install podman podman machine init podman machine start
brew install --cask podman-desktop. - Ubuntu / Debian:
sudo apt install podman(Ubuntu 24.04 ships an older 4.9.x). - Fedora 43+:
sudo dnf install podman— nopodman machinesetup is needed on Linux.