Created two empty Spring-Boot projects for the consumer and the provider
authorKai Moritz <kai@juplo.de>
Sat, 13 Mar 2021 08:27:15 +0000 (09:27 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 13 Mar 2021 08:27:15 +0000 (09:27 +0100)
.gitignore [new file with mode: 0644]
consumer/pom.xml [new file with mode: 0644]
consumer/src/main/java/de/juplo/demos/consumer/ConsumerApplication.java [new file with mode: 0644]
consumer/src/main/resources/application.properties [new file with mode: 0644]
consumer/src/test/java/de/juplo/demos/consumer/ConsumerApplicationTests.java [new file with mode: 0644]
pom.xml [new file with mode: 0644]
provider/pom.xml [new file with mode: 0644]
provider/src/main/java/de/juplo/demos/provider/ProviderApplication.java [new file with mode: 0644]
provider/src/main/resources/application.properties [new file with mode: 0644]
provider/src/test/java/de/juplo/demos/provider/ProviderApplicationTests.java [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..7339146
--- /dev/null
@@ -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 (file)
index 0000000..d9d8d14
--- /dev/null
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.springframework.boot</groupId>
+               <artifactId>spring-boot-starter-parent</artifactId>
+               <version>2.4.3</version>
+               <relativePath/> <!-- lookup parent from repository -->
+       </parent>
+       <groupId>de.juplo.demos</groupId>
+       <artifactId>consumer</artifactId>
+       <version>0.0.1-SNAPSHOT</version>
+       <name>consumer</name>
+       <description>Demo of a Pact Provider</description>
+       <properties>
+               <java.version>11</java.version>
+       </properties>
+       <dependencies>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-web</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.projectlombok</groupId>
+                       <artifactId>lombok</artifactId>
+                       <optional>true</optional>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.springframework.boot</groupId>
+                               <artifactId>spring-boot-maven-plugin</artifactId>
+                               <configuration>
+                                       <excludes>
+                                               <exclude>
+                                                       <groupId>org.projectlombok</groupId>
+                                                       <artifactId>lombok</artifactId>
+                                               </exclude>
+                                       </excludes>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+
+</project>
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 (file)
index 0000000..e697bf5
--- /dev/null
@@ -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 (file)
index 0000000..8b13789
--- /dev/null
@@ -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 (file)
index 0000000..5cee65c
--- /dev/null
@@ -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 (file)
index 0000000..7cbef96
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.springframework.boot</groupId>
+               <artifactId>spring-boot-starter-parent</artifactId>
+               <version>2.4.3</version>
+               <relativePath/> <!-- lookup parent from repository -->
+       </parent>
+       <groupId>de.juplo.demos</groupId>
+       <artifactId>pact</artifactId>
+       <version>1.0.0</version>
+       <packaging>pom</packaging>
+       <name>pact</name>
+       <description>Pact-Demo based on Spring Boot</description>
+       <properties>
+               <java.version>11</java.version>
+       </properties>
+       <modules>
+         <module>consumer</module>
+         <module>provider</module>
+       </modules>
+
+</project>
diff --git a/provider/pom.xml b/provider/pom.xml
new file mode 100644 (file)
index 0000000..bdddb4b
--- /dev/null
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.springframework.boot</groupId>
+               <artifactId>spring-boot-starter-parent</artifactId>
+               <version>2.4.3</version>
+               <relativePath/> <!-- lookup parent from repository -->
+       </parent>
+       <groupId>de.juplo.demos</groupId>
+       <artifactId>provider</artifactId>
+       <version>0.0.1-SNAPSHOT</version>
+       <name>provider</name>
+       <description>Demo of a Pact Provider</description>
+       <properties>
+               <java.version>11</java.version>
+       </properties>
+       <dependencies>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-web</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.projectlombok</groupId>
+                       <artifactId>lombok</artifactId>
+                       <optional>true</optional>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.boot</groupId>
+                       <artifactId>spring-boot-starter-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.springframework.boot</groupId>
+                               <artifactId>spring-boot-maven-plugin</artifactId>
+                               <configuration>
+                                       <excludes>
+                                               <exclude>
+                                                       <groupId>org.projectlombok</groupId>
+                                                       <artifactId>lombok</artifactId>
+                                               </exclude>
+                                       </excludes>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+
+</project>
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 (file)
index 0000000..4dc5444
--- /dev/null
@@ -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 (file)
index 0000000..8b13789
--- /dev/null
@@ -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 (file)
index 0000000..96269df
--- /dev/null
@@ -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() {
+       }
+
+}