Skip to content

Commit

Permalink
upgrade spring boot version
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Opoku committed Nov 7, 2024
1 parent 0ac0fbe commit 2d6cf02
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A highly opinionated and complete starter for Spring Boot production ready proje

## Built With

* [Spring Boot 3.2.3](https://projects.spring.io/spring-boot/) - Inversion of Control Framework
* [Spring Boot 3.3.5](https://projects.spring.io/spring-boot/) - Inversion of Control Framework
* [Bootstrap 5](https://getbootstrap.com/docs/5.0/getting-started/introduction/) - HTML, CSS, and
JavaScript framework
* [Thymeleaf](https://www.thymeleaf.org/) - Modern server-side Java template engine
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'org.springframework.boot' version '3.3.4'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
id 'org.owasp.dependencycheck' version '10.0.0'
id 'org.owasp.dependencycheck' version '11.1.0'
id 'com.diffplug.spotless' version '6.25.0'
id 'eclipse'
id 'jacoco'
Expand All @@ -15,7 +15,7 @@ version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
languageVersion = JavaLanguageVersion.of(21)
}
// You can uncomment this to include javadoc jar generation
// withJavadocJar()
Expand Down Expand Up @@ -96,7 +96,7 @@ dependencies {
implementation 'org.webjars:bootstrap:5.3.3'
implementation 'org.webjars:popper.js:2.11.7'
implementation 'org.webjars:jquery-ui:1.14.0'
implementation 'org.webjars:datatables:1.13.5'
implementation 'org.webjars:datatables:2.0.3'
implementation 'org.webjars:font-awesome:6.5.2'
implementation 'org.webjars:webjars-locator:0.52'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ProdConfig {
*/
@Bean
public AmazonS3 amazonS3(AwsProperties props) {
// Create the credentials provider
// Create the credential provider
var credentials = new BasicAWSCredentials(props.getAccessKeyId(), props.getSecretAccessKey());

return AmazonS3ClientBuilder.standard()
Expand Down
11 changes: 6 additions & 5 deletions src/main/resources/application-production.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ===============================
# = DATA SOURCE
# ===============================
spring.datasource.url=${DATABASE_URL}
spring.datasource.username=${DATABASE_USERNAME}
spring.datasource.password=${DATABASE_PASSWORD}
spring.datasource.url=${DATABASE_URL:jdbc:postgresql://server.ericopoku.com:5432/spring-boot-starter}
spring.datasource.username=${DATABASE_USERNAME:sbs}
spring.datasource.password=${DATABASE_PASSWORD:sbs@SBS123!}
spring.datasource.driverClassName=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.datasource.hikari.schema=spring_boot_starter
Expand All @@ -22,8 +22,8 @@ logging.level.com.developersboard=debug
# ===============================
spring.mail.host=${EMAIL_HOST:smtp.gmail.com}
spring.mail.port=${EMAIL_PORT:587}
spring.mail.username=${EMAIL_USERNAME}
spring.mail.password=${EMAIL_PASSWORD}
spring.mail.username=${EMAIL_USERNAME:[email protected]}
spring.mail.password=${EMAIL_PASSWORD:aulimfkexduffmbx}
spring.mail.protocol=${EMAIL_PROTOCOL:smtp}
# Other properties
spring.mail.properties.mail.smtp.auth=true
Expand All @@ -37,5 +37,6 @@ spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.ssl.enable=true

spring.h2.console.enabled=false
spring.liquibase.enabled=false

server.forward-headers-strategy=framework
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.profiles.active=${SPRING_PROFILES_ACTIVE:development}
spring.profiles.active=${SPRING_PROFILES_ACTIVE:production}
# System properties
system.name=${SYSTEM_NAME:Spring Boot Starter}
system.email=${SYSTEM_EMAIL:[email protected]}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /bin/bash
./wait-for-it.sh postgres-db:5434 -t 60
./wait-for-it.sh postgres-db:5432 -t 60
java -Djava.security.egd=file:/dev/./urandom -cp .:lib/* com.developersboard.SpringBootStarterApplication

0 comments on commit 2d6cf02

Please sign in to comment.