From 2cc4aec4d0c887ddca4ecfb32abacfc7f900a1ac Mon Sep 17 00:00:00 2001 From: Rodolfo Picoreti Date: Fri, 22 Feb 2019 12:04:58 -0300 Subject: [PATCH] revert version/id they cant be properties, add readme. --- README.md | 27 +++++++++++++++++++++++++++ customer-service-api/pom.xml | 10 +++++----- customer-service-impl/pom.xml | 20 ++++++++++---------- pom.xml | 14 ++++++-------- 4 files changed, 48 insertions(+), 23 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cca3b54 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ + +### Project Structure + +- customer-service-api: Java package defining only the interfaces and the models of the service. +This package can be consumed by clients in order to use this service (see CustomerClient for an example). +- customer-service-impl: Java package containing the service implementation. + +### Maven + +Build (and test project) +```bash +./mvnw clean install +# or +./mvnw clean install -DskipTests +``` + +Run spring application for development +```bash +./mvnw -pl customer-service-impl spring-boot:run +``` + +Build image and add it to your docker daemon +```bash +./mvnw -pl customer-service-impl compile jib:dockerBuild +``` + + diff --git a/customer-service-api/pom.xml b/customer-service-api/pom.xml index 1456961..935897c 100644 --- a/customer-service-api/pom.xml +++ b/customer-service-api/pom.xml @@ -6,15 +6,15 @@ br.com.wine - ${service.name} - ${service.version} + customer-service + 0.0.1-SNAPSHOT br.com.wine.service - ${service.name}-api + customer-service-api 0.0.1-SNAPSHOT - ${service.name}-api - ${service.name} API definitions + customer-service-api + customer-service API definitions diff --git a/customer-service-impl/pom.xml b/customer-service-impl/pom.xml index 974cd12..1b77b65 100644 --- a/customer-service-impl/pom.xml +++ b/customer-service-impl/pom.xml @@ -6,21 +6,21 @@ br.com.wine - ${service.name} - ${service.version} + customer-service + 0.0.1-SNAPSHOT br.com.wine.service - ${service.name}-impl - ${service.version} - ${service.name}-impl - ${service.name} service implementation + customer-service-impl + 0.0.1-SNAPSHOT + customer-service-impl + customer-service service implementation br.com.wine.service - ${service.name}-api - ${service.version} + customer-service-api + 0.0.1-SNAPSHOT @@ -77,10 +77,10 @@ 1.0.0 - gcr.io/distroless/java:${java.version + gcr.io/distroless/java:${java.version} - winecombr/${service.name}:${service.version} + winecombr/customer-service:${project.version} diff --git a/pom.xml b/pom.xml index 6378df3..d19af4b 100644 --- a/pom.xml +++ b/pom.xml @@ -12,8 +12,6 @@ - customer-service - 0.0.1-SNAPSHOT 11 ${java.version} ${java.version} @@ -21,14 +19,14 @@ br.com.wine - ${service.name} - ${service.version} - ${service.name} - ${service.name} project + customer-service + 0.0.1-SNAPSHOT + customer-service + customer-service project pom - ${service.name}-api - ${service.name}-impl + customer-service-api + customer-service-impl