Вы здесь:

Шаблоны проектов Spring Boot, Java, Kotlin.

Kotlin, Spring 2.7.9, Gradle: https://github.com/cherepakhin/kotlin_up_gradle_spring279.
Set JAVA 17:

$ export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
$ echo $JAVA_HOME
/usr/lib/jvm/java-17-openjdk-amd64

Run unit test:

./gradlew test

Run app:

./gradlew bootRun

Offline режим:

./gradlew --offline test
./gradlew --offline bootRun

Java, Spring Boot 2.5.6, Maven: https://github.com/cherepakhin/s256.
Set JAVA 11:

$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

Run unit test:

./mvnw test

Run app:

./mvnw spring-boot:run

Request test:

http :8780/api/echo/

Offline режим:

./mvnw -o test
./mvnw -o spring-boot:run

Ссылки:

Разработка в offline режиме