Skip to content

Commit

Permalink
feat: switch to Java 21 and Spring Boot 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehoehns committed Nov 29, 2023
1 parent 3eb465d commit 340a3f0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions java-spring-boot/.sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Add key=value pairs of SDKs to use below
java=21-ms
1 change: 1 addition & 0 deletions java-spring-boot/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
init:
./setup-java.sh
gradle build

verify:
Expand Down
4 changes: 2 additions & 2 deletions java-spring-boot/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Java Spring Boot Project

## Tech Stack
- Java 17
- Java 21
- JUnit 5
- Spring Boot 3.1
- Spring Boot 3.2.0
- Web
- JPA
- Lombok
Expand Down
6 changes: 3 additions & 3 deletions java-spring-boot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.4'
}

group = 'com.sourceallies'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
sourceCompatibility = '21'
}

configurations {
Expand Down
5 changes: 5 additions & 0 deletions java-spring-boot/setup-java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

source /usr/local/sdkman/bin/sdkman-init.sh
sdk env install
sdk default java 21-ms
2 changes: 1 addition & 1 deletion java-spring-boot/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spring:
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
datasource:
# Configured to point to the docker-compose postgres DB container by default
# Configured to point to the docker-compose postgres DB container by default
username: postgres
password: DB_PASSWORD:postgres
driver-class-name: org.postgresql.Driver
Expand Down

0 comments on commit 340a3f0

Please sign in to comment.