From 3c2605c658cd01ebe8edd5a3abca7f431ca64050 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 13 Mar 2021 09:27:15 +0100 Subject: [PATCH 1/1] Created two empty Spring-Boot projects for the consumer and the provider --- .gitignore | 31 +++++++++++ consumer/pom.xml | 54 +++++++++++++++++++ .../demos/consumer/ConsumerApplication.java | 13 +++++ .../src/main/resources/application.properties | 1 + .../consumer/ConsumerApplicationTests.java | 13 +++++ pom.xml | 25 +++++++++ provider/pom.xml | 54 +++++++++++++++++++ .../demos/provider/ProviderApplication.java | 13 +++++ .../src/main/resources/application.properties | 1 + .../provider/ProviderApplicationTests.java | 13 +++++ 10 files changed, 218 insertions(+) create mode 100644 .gitignore create mode 100644 consumer/pom.xml create mode 100644 consumer/src/main/java/de/juplo/demos/consumer/ConsumerApplication.java create mode 100644 consumer/src/main/resources/application.properties create mode 100644 consumer/src/test/java/de/juplo/demos/consumer/ConsumerApplicationTests.java create mode 100644 pom.xml create mode 100644 provider/pom.xml create mode 100644 provider/src/main/java/de/juplo/demos/provider/ProviderApplication.java create mode 100644 provider/src/main/resources/application.properties create mode 100644 provider/src/test/java/de/juplo/demos/provider/ProviderApplicationTests.java 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() { + } + +} -- 2.20.1