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