Skip to content

Commit

Permalink
Update Initial folder to represent empty project
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Robert McNees committed Jun 20, 2024
1 parent 23c6888 commit 69a0d61
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 4 additions & 2 deletions initial/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
5 changes: 5 additions & 0 deletions initial/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
redis:
image: 'redis:latest'
ports:
- '6379'
11 changes: 8 additions & 3 deletions initial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>messaging-redis-initial</artifactId>
<artifactId>messaging-redis</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>messaging-redis</name>
<name>messaging-redis-initial</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
Expand All @@ -21,7 +21,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-docker-compose</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down

0 comments on commit 69a0d61

Please sign in to comment.