From 69a0d61d4ec7078c0235a8f7cd54fdf348c74e6b Mon Sep 17 00:00:00 2001 From: Robert McNees Date: Thu, 20 Jun 2024 12:07:05 -0400 Subject: [PATCH] Update Initial folder to represent empty project The initial folder is modified so that it is a true representation of what will be downloaded from Spring Initializr. This includes adding the new Docker Compose dependency as well as a compose.yaml file. --- initial/build.gradle | 6 ++++-- initial/compose.yaml | 5 +++++ initial/pom.xml | 11 ++++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 initial/compose.yaml diff --git a/initial/build.gradle b/initial/build.gradle index ea0c119..d842806 100644 --- a/initial/build.gradle +++ b/initial/build.gradle @@ -14,9 +14,11 @@ repositories { dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-redis' + developmentOnly 'org.springframework.boot:spring-boot-docker-compose' testImplementation 'org.springframework.boot:spring-boot-starter-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } -test { +tasks.named('test') { useJUnitPlatform() -} +} \ No newline at end of file diff --git a/initial/compose.yaml b/initial/compose.yaml new file mode 100644 index 0000000..1cfb822 --- /dev/null +++ b/initial/compose.yaml @@ -0,0 +1,5 @@ +services: + redis: + image: 'redis:latest' + ports: + - '6379' diff --git a/initial/pom.xml b/initial/pom.xml index 53de838..26af74a 100644 --- a/initial/pom.xml +++ b/initial/pom.xml @@ -9,9 +9,9 @@ com.example - messaging-redis-initial + messaging-redis 0.0.1-SNAPSHOT - messaging-redis + messaging-redis-initial Demo project for Spring Boot 17 @@ -21,7 +21,12 @@ org.springframework.boot spring-boot-starter-data-redis - + + org.springframework.boot + spring-boot-docker-compose + runtime + true + org.springframework.boot spring-boot-starter-test