diff options
Diffstat (limited to 'a1-policy-management/pom.xml')
-rw-r--r-- | a1-policy-management/pom.xml | 103 |
1 files changed, 65 insertions, 38 deletions
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml index 6b797526..2a24dbca 100644 --- a/a1-policy-management/pom.xml +++ b/a1-policy-management/pom.xml @@ -51,6 +51,26 @@ </properties> <dependencies> <dependency> + <groupId>javax.validation</groupId> + <artifactId>validation-api</artifactId> + <version>2.0.1.Final</version> + </dependency> + <dependency> + <groupId>javax.annotation</groupId> + <artifactId>javax.annotation-api</artifactId> + <version>1.3.2</version> + </dependency> + <dependency> + <groupId>io.swagger.core.v3</groupId> + <artifactId>swagger-annotations</artifactId> + <version>2.2.15</version> + </dependency> + <dependency> + <groupId>org.openapitools</groupId> + <artifactId>jackson-databind-nullable</artifactId> + <version>0.2.4</version> + </dependency> + <dependency> <!-- Temporary until version 2 is included by the parent spring-boot-starter-parent --> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> @@ -62,10 +82,6 @@ </dependency> <dependency> <groupId>org.springframework</groupId> - <artifactId>spring-beans</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </dependency> <dependency> @@ -73,22 +89,10 @@ <artifactId>spring-boot-autoconfigure</artifactId> </dependency> <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-web</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-webmvc</artifactId> - </dependency> - <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> </dependency> <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-webflux</artifactId> - </dependency> - <dependency> <!-- May be possible to remove this later when ccsdk parent bom stabilizes --> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> @@ -154,17 +158,6 @@ <optional>true</optional> <scope>runtime</scope> </dependency> - <!-- TEST --> - <dependency> - <groupId>org.springdoc</groupId> - <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> - <version>${springdoc.version}</version> - </dependency> - <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-test</artifactId> - <scope>test</scope> - </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> @@ -217,6 +210,7 @@ <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> + <version>2.1.1</version> <executions> <execution> <phase>validate</phase> @@ -284,9 +278,6 @@ </configuration> </plugin> <plugin> - <artifactId>maven-failsafe-plugin</artifactId> - </plugin> - <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> @@ -325,9 +316,31 @@ </executions> </plugin> <plugin> + <groupId>io.swagger.codegen.v3</groupId> + <artifactId>swagger-codegen-maven-plugin</artifactId> + <version>3.0.46</version> + <executions> + <execution> + <id>generate-openapi-json</id> + <phase>prepare-package</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec> + <language>openapi</language> + <output>${project.basedir}/api</output> + <configOptions> + <outputFile>pms-api.json</outputFile> + </configOptions> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-generator-maven-plugin</artifactId> - <version>6.0.0</version> + <version>6.6.0</version> <executions> <execution> <id>generate-openapi-html</id> @@ -353,18 +366,32 @@ </configuration> </execution> <execution> - <id>generate-openapi-yaml</id> - <phase>prepare-package</phase> + <id>generate-policy-api</id> + <phase>generate-sources </phase> <goals> <goal>generate</goal> </goals> <configuration> - <inputSpec>${project.basedir}/api/pms-api.json</inputSpec> - <generatorName>openapi-yaml</generatorName> - <verbose>false</verbose> - <output>${project.basedir}/api</output> + <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec> + <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage> + <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage> + <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage> + <generateApiTests>false</generateApiTests> + <generateModelTests>false</generateModelTests> + <generatorName>spring</generatorName> + <generateSupportingFiles>false</generateSupportingFiles> + <skipValidateSpec>false</skipValidateSpec> + <library>spring-boot</library> <configOptions> - <outputFile>pms-api.yaml</outputFile> + <sourceFolder>src/gen/java</sourceFolder> + <interfaceOnly>true</interfaceOnly> + <useTags>true</useTags> + <reactive>true</reactive> + <dateLibrary>java8</dateLibrary> + <java8>true</java8> + <unhandledException>true</unhandledException> + <openApiNullable>false</openApiNullable> + <skipDefaultInterface>true</skipDefaultInterface> </configOptions> </configuration> </execution> |