From: Kai Moritz Date: Sat, 13 Mar 2021 08:27:15 +0000 (+0100) Subject: Created two empty Spring-Boot projects for the consumer and the provider X-Git-Tag: tmp~5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=3c2605c658cd01ebe8edd5a3abca7f431ca64050;p=demos%2Fpact Created two empty Spring-Boot projects for the consumer and the provider --- 3c2605c658cd01ebe8edd5a3abca7f431ca64050 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7339146 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +target/ +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/consumer/pom.xml b/consumer/pom.xml new file mode 100644 index 0000000..d9d8d14 --- /dev/null +++ b/consumer/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.4.3 + + + de.juplo.demos + consumer + 0.0.1-SNAPSHOT + consumer + Demo of a Pact Provider + + 11 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/consumer/src/main/java/de/juplo/demos/consumer/ConsumerApplication.java b/consumer/src/main/java/de/juplo/demos/consumer/ConsumerApplication.java new file mode 100644 index 0000000..e697bf5 --- /dev/null +++ b/consumer/src/main/java/de/juplo/demos/consumer/ConsumerApplication.java @@ -0,0 +1,13 @@ +package de.juplo.demos.consumer; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ConsumerApplication { + + public static void main(String[] args) { + SpringApplication.run(ConsumerApplication.class, args); + } + +} diff --git a/consumer/src/main/resources/application.properties b/consumer/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/consumer/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/consumer/src/test/java/de/juplo/demos/consumer/ConsumerApplicationTests.java b/consumer/src/test/java/de/juplo/demos/consumer/ConsumerApplicationTests.java new file mode 100644 index 0000000..5cee65c --- /dev/null +++ b/consumer/src/test/java/de/juplo/demos/consumer/ConsumerApplicationTests.java @@ -0,0 +1,13 @@ +package de.juplo.demos.consumer; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class ConsumerApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7cbef96 --- /dev/null +++ b/pom.xml @@ -0,0 +1,25 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.4.3 + + + de.juplo.demos + pact + 1.0.0 + pom + pact + Pact-Demo based on Spring Boot + + 11 + + + consumer + provider + + + diff --git a/provider/pom.xml b/provider/pom.xml new file mode 100644 index 0000000..bdddb4b --- /dev/null +++ b/provider/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.4.3 + + + de.juplo.demos + provider + 0.0.1-SNAPSHOT + provider + Demo of a Pact Provider + + 11 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/provider/src/main/java/de/juplo/demos/provider/ProviderApplication.java b/provider/src/main/java/de/juplo/demos/provider/ProviderApplication.java new file mode 100644 index 0000000..4dc5444 --- /dev/null +++ b/provider/src/main/java/de/juplo/demos/provider/ProviderApplication.java @@ -0,0 +1,13 @@ +package de.juplo.demos.provider; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ProviderApplication { + + public static void main(String[] args) { + SpringApplication.run(ProviderApplication.class, args); + } + +} diff --git a/provider/src/main/resources/application.properties b/provider/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/provider/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/provider/src/test/java/de/juplo/demos/provider/ProviderApplicationTests.java b/provider/src/test/java/de/juplo/demos/provider/ProviderApplicationTests.java new file mode 100644 index 0000000..96269df --- /dev/null +++ b/provider/src/test/java/de/juplo/demos/provider/ProviderApplicationTests.java @@ -0,0 +1,13 @@ +package de.juplo.demos.provider; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class ProviderApplicationTests { + + @Test + void contextLoads() { + } + +}