From 6103c51516208d6d063996bff7961fc9b856c66a Mon Sep 17 00:00:00 2001 From: Kai Moritz <kai@juplo.de> Date: Sat, 13 Mar 2021 09:27:15 +0100 Subject: [PATCH 1/1] Created an empty Spring-Boot projects for the first consumer: pwreset --- .gitignore | 31 ++++++++++++ pom.xml | 24 +++++++++ pwreset/pom.xml | 50 +++++++++++++++++++ .../demos/pwreset/PWResetApplication.java | 14 ++++++ .../src/main/resources/application.properties | 1 + .../pwreset/PWResetApplicationTests.java | 14 ++++++ 6 files changed, 134 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 pwreset/pom.xml create mode 100644 pwreset/src/main/java/de/juplo/demos/pwreset/PWResetApplication.java create mode 100644 pwreset/src/main/resources/application.properties create mode 100644 pwreset/src/test/java/de/juplo/demos/pwreset/PWResetApplicationTests.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/pom.xml b/pom.xml new file mode 100644 index 0000000..97f526e --- /dev/null +++ b/pom.xml @@ -0,0 +1,24 @@ +<?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>pwreset</module> + </modules> + +</project> diff --git a/pwreset/pom.xml b/pwreset/pom.xml new file mode 100644 index 0000000..e63871b --- /dev/null +++ b/pwreset/pom.xml @@ -0,0 +1,50 @@ +<?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>de.juplo.demos</groupId> + <artifactId>pact</artifactId> + <version>1.0.0</version> + </parent> + <groupId>de.juplo.demos</groupId> + <artifactId>pwreset</artifactId> + <version>1.0.0</version> + <name>consumer</name> + <description>Password-Reset Service</description> + <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/pwreset/src/main/java/de/juplo/demos/pwreset/PWResetApplication.java b/pwreset/src/main/java/de/juplo/demos/pwreset/PWResetApplication.java new file mode 100644 index 0000000..779a098 --- /dev/null +++ b/pwreset/src/main/java/de/juplo/demos/pwreset/PWResetApplication.java @@ -0,0 +1,14 @@ +package de.juplo.demos.pwreset; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class PWResetApplication +{ + + public static void main(String[] args) { + SpringApplication.run(PWResetApplication.class, args); + } + +} diff --git a/pwreset/src/main/resources/application.properties b/pwreset/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/pwreset/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/pwreset/src/test/java/de/juplo/demos/pwreset/PWResetApplicationTests.java b/pwreset/src/test/java/de/juplo/demos/pwreset/PWResetApplicationTests.java new file mode 100644 index 0000000..4e80f8a --- /dev/null +++ b/pwreset/src/test/java/de/juplo/demos/pwreset/PWResetApplicationTests.java @@ -0,0 +1,14 @@ +package de.juplo.demos.pwreset; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class PWResetApplicationTests +{ + + @Test + void contextLoads() { + } + +} -- 2.20.1