From 9387d4049b756570c75af1ea39c0ecc2d5fa7f68 Mon Sep 17 00:00:00 2001 From: David Gileadi Date: Wed, 16 May 2018 13:14:26 -0700 Subject: [PATCH] Improve build to use a fat jar --- README.md | 14 ++++++++++---- pom.xml | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a3343f..3526f87 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Swagger to Puml convertion tool helps to generate Class Diagrams from Swagger Definition. This Project is based on Maven and plan to support Gradle also in future. -Following are modules we currently have +Following are modules we currently have - swagger2puml-core - swagger2puml-maven @@ -29,7 +29,7 @@ Create a new System Variable called GRAPHVIZ_DOT and point to dot.exe for window - Once the swagger.puml gets generated sucessfully it then calls [Plant UML] to generate swagger.svg -## swagger2puml-core: +## swagger2puml-core: This utility takes Swagger Yaml as input and as response it generates swagger.puml and swagger.svg files as output. @@ -38,10 +38,16 @@ To see the generated PUML file, please click [here](examples/swagger.puml) ![Swagger-Class-Diagram-Sample](examples/swagger.svg) -### Usage: +### Building ``` -java -cp swagger2puml.jar com.kicksolutions.swagger.Swagger2PlantUML [options] +mvn package +``` + +### Usage + +``` +java -jar swagger2puml.jar [options] -i {Path of Swagger Definition (Can be either Yaml or json)} -o {Target location where Puml File and Image should generated} diff --git a/pom.xml b/pom.xml index 73ec6da..ed7736f 100644 --- a/pom.xml +++ b/pom.xml @@ -129,6 +129,33 @@ + + org.apache.maven.plugins + maven-assembly-plugin + + + jar-with-dependencies + + + + true + com.kicksolutions.swagger.Swagger2PlantUML + + + ${project.parent.basedir} + swagger2puml + false + + + + assemble-all + package + + single + + + +