From 5ac58e3fa7aeda9e6455d145119227aecf58ed88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Reyes?= Date: Wed, 15 Apr 2020 14:28:07 +0200 Subject: [PATCH 1/2] [CON-462] Added plugin to export jar with dependencies --- README.md | 10 ++ pom.xml | 283 +++++++++++++++++++++++++++--------------------------- 2 files changed, 154 insertions(+), 139 deletions(-) diff --git a/README.md b/README.md index 132a87b..18a33b3 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,13 @@ IriusRisk client Java library To generate a jar file: mvn package + +A library called iriusrisk-client-lib-0.1-SNAPSHOT-jar-with-dependencies.jar will be ready to be used. + +To use the library in a Maven project add the following dependency after execute "mvn install" instead of "mvn package": + + + com.iriusrisk + iriusrisk-client-lib + 0.1-SNAPSHOT + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 7617c6a..ee5182f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,140 +1,145 @@ - - 4.0.0 - com.iriusrisk - iriusrisk-client-lib - jar - 0.1-SNAPSHOT - iriusrisk-client-lib - http://maven.apache.org - - package - - - - maven-compiler-plugin - - 1.8 - 1.8 - - - - - io.swagger - swagger-codegen-maven-plugin - 2.4.13 - - - - generate - - - - swagger.yaml - - - java - - - - - - joda - com.iriusrisk.api - com.iriusrisk.model - 1 - com.iriusrisk - iriusrisk-client-lib - - - - - - - - - - - - - - io.swagger - swagger-annotations - ${swagger-annotations-version} - - - - - - - - com.google.code.gson - gson - ${gson-version} - - - com.squareup.okhttp - okhttp - ${okhttp-version} - - - com.squareup.okhttp - logging-interceptor - ${okhttp-logging-version} - - - io.gsonfire - gson-fire - ${gson-fire-version} - - - - - com.brsanthu - migbase64 - ${migbase64-version} - - - junit - junit - ${junit-version} - - - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson-version} - - - joda-time - joda-time - ${jodatime-version} - - - - - 1.5.21 - 2.8.6 - 1.8.4 - 2.7.5 - 2.7.5 - 2.2 - 1.0.0 - 2.10.1 - 2.7 - 4.13 - + + 4.0.0 + com.iriusrisk + iriusrisk-client-lib + jar + 0.1-SNAPSHOT + iriusrisk-client-lib + + + package + + + maven-compiler-plugin + + 1.8 + 1.8 + + + + io.swagger + swagger-codegen-maven-plugin + 2.4.13 + + + + generate + + + swagger.yaml + java + + joda + com.iriusrisk.api + com.iriusrisk.model + 1 + com.iriusrisk + iriusrisk-client-lib + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.0 + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + + + + io.swagger + swagger-annotations + ${swagger-annotations-version} + + + + + + + + com.google.code.gson + gson + ${gson-version} + + + com.squareup.okhttp + okhttp + ${okhttp-version} + + + com.squareup.okhttp + logging-interceptor + ${okhttp-logging-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + + + com.brsanthu + migbase64 + ${migbase64-version} + + + junit + junit + ${junit-version} + + + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${jackson-version} + + + joda-time + joda-time + ${jodatime-version} + + + + + 1.5.21 + 2.8.6 + 1.8.4 + 2.7.5 + 2.7.5 + 2.2 + 1.0.0 + 2.10.1 + 2.7 + 4.13 + \ No newline at end of file From 401bcf9f9b43428f928463ee4252cbbdee1810cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Reyes?= Date: Wed, 15 Apr 2020 14:29:20 +0200 Subject: [PATCH 2/2] [CON-462] Fixed test class --- IriusRiskClientExample.java => IriusRiskClient.java | 1 - 1 file changed, 1 deletion(-) rename IriusRiskClientExample.java => IriusRiskClient.java (98%) diff --git a/IriusRiskClientExample.java b/IriusRiskClient.java similarity index 98% rename from IriusRiskClientExample.java rename to IriusRiskClient.java index 7c3f8ee..5806201 100644 --- a/IriusRiskClientExample.java +++ b/IriusRiskClient.java @@ -1,7 +1,6 @@ /* * Copyright (c) 2012-2020 Continuum Security. All rights reserved */ -package com.iriusrisk.client; import com.iriusrisk.ApiException; import com.iriusrisk.api.ProductsApi;