This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
88 lines (83 loc) · 3.97 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.food-services</groupId>
<artifactId>api-spec</artifactId>
<version>2.0.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator</artifactId>
<version>5.4.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.6.3</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>0.2.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>5.4.0</version>
<executions>
<execution>
<id>java-artifact</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
<generatorName>spring</generatorName>
<apiPackage>com.foodservices.apicodegen</apiPackage>
<modelPackage>com.foodservices.apicodegen.model</modelPackage>
<modelNameSuffix>Dto</modelNameSuffix>
<configOptions>
<interfaceOnly>true</interfaceOnly>
<artifactId>api-spec</artifactId>
<groupId>org.food-services</groupId>
<snapshotVersion>true</snapshotVersion>
</configOptions>
</configuration>
</execution>
<execution>
<id>angular-artifact</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
<generatorName>typescript-angular</generatorName>
<output>${project.basedir}/target/generated-sources/npm-package</output>
<modelNameSuffix>Dto</modelNameSuffix>
<configOptions>
<npmName>@adam-shamaa/food-services-aggregator-spec</npmName>
<npmRepository>https://npm.pkg.github.com</npmRepository>
<snapshot>false</snapshot>
<providedInRoot>true</providedInRoot>
<stringEnums>true</stringEnums>
<withInterfaces>true</withInterfaces>
<apiModulePrefix>FoodServicesAggregator</apiModulePrefix>
<configurationPrefix>FoodServicesAggregator</configurationPrefix>
<ngVersion>13.1.0</ngVersion>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>