|
13 | 13 | <name>Feast Authentication and Authorization</name> |
14 | 14 |
|
15 | 15 | <properties> |
16 | | - <external.auth.client.package.name>feast.auth.generated.client</external.auth.client.package.name> |
| 16 | + <feast.auth.providers.http.client.package.name>feast.auth.providers.http.client |
| 17 | + </feast.auth.providers.http.client.package.name> |
17 | 18 | <gson-fire-version>1.8.4</gson-fire-version> |
18 | 19 | <swagger-core-version>1.5.24</swagger-core-version> |
19 | 20 | <okhttp-version>3.14.7</okhttp-version> |
20 | 21 | <gson-version>2.8.6</gson-version> |
21 | 22 | <commons-lang3-version>3.10</commons-lang3-version> |
22 | 23 | <javax-annotation-version>1.3.2</javax-annotation-version> |
23 | 24 | <junit-version>4.13</junit-version> |
| 25 | + <springfox-version>2.8.0</springfox-version> |
24 | 26 | </properties> |
25 | 27 | <dependencies> |
26 | 28 | <dependency> |
|
60 | 62 | <groupId>com.fasterxml.jackson.core</groupId> |
61 | 63 | <artifactId>jackson-databind</artifactId> |
62 | 64 | </dependency> |
63 | | - <dependency> |
64 | | - <groupId>junit</groupId> |
65 | | - <artifactId>junit</artifactId> |
66 | | - </dependency> |
67 | 65 | <dependency> |
68 | 66 | <groupId>io.swagger</groupId> |
69 | 67 | <artifactId>swagger-annotations</artifactId> |
|
106 | 104 | <version>${mockito.version}</version> |
107 | 105 | <scope>test</scope> |
108 | 106 | </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.springframework.boot</groupId> |
| 109 | + <artifactId>spring-boot-starter-web</artifactId> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>io.springfox</groupId> |
| 113 | + <artifactId>springfox-swagger2</artifactId> |
| 114 | + <version>${springfox-version}</version> |
| 115 | + </dependency> |
| 116 | + <dependency> |
| 117 | + <groupId>io.springfox</groupId> |
| 118 | + <artifactId>springfox-swagger-ui</artifactId> |
| 119 | + <version>${springfox-version}</version> |
| 120 | + </dependency> |
| 121 | + <dependency> |
| 122 | + <groupId>javax.xml.bind</groupId> |
| 123 | + <artifactId>jaxb-api</artifactId> |
| 124 | + <version>2.2.11</version> |
| 125 | + </dependency> |
| 126 | + <dependency> |
| 127 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 128 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 129 | + </dependency> |
| 130 | + <dependency> |
| 131 | + <groupId>org.openapitools</groupId> |
| 132 | + <artifactId>jackson-databind-nullable</artifactId> |
| 133 | + <version>0.1.0</version> |
| 134 | + </dependency> |
| 135 | + <!-- Bean Validation API support --> |
| 136 | + <dependency> |
| 137 | + <groupId>javax.validation</groupId> |
| 138 | + <artifactId>validation-api</artifactId> |
| 139 | + </dependency> |
| 140 | + <dependency> |
| 141 | + <groupId>org.springframework.boot</groupId> |
| 142 | + <artifactId>spring-boot-starter-test</artifactId> |
| 143 | + <scope>test</scope> |
| 144 | + <exclusions> |
| 145 | + <exclusion> |
| 146 | + <groupId>org.junit.vintage</groupId> |
| 147 | + <artifactId>junit-vintage-engine</artifactId> |
| 148 | + </exclusion> |
| 149 | + </exclusions> |
| 150 | + </dependency> |
| 151 | + <dependency> |
| 152 | + <groupId>junit</groupId> |
| 153 | + <artifactId>junit</artifactId> |
| 154 | + <version>4.12</version> |
| 155 | + </dependency> |
109 | 156 | </dependencies> |
110 | 157 | <build> |
111 | 158 | <plugins> |
|
115 | 162 | <version>4.3.1</version> |
116 | 163 | <executions> |
117 | 164 | <execution> |
| 165 | + <id>client</id> |
118 | 166 | <goals> |
119 | 167 | <goal>generate</goal> |
120 | 168 | </goals> |
121 | 169 | <configuration> |
122 | 170 | <inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec> |
123 | 171 | <generatorName>java</generatorName> |
124 | | - <packageName>${external.auth.client.package.name}</packageName> |
125 | | - <modelPackage>${external.auth.client.package.name}.model</modelPackage> |
126 | | - <apiPackage>${external.auth.client.package.name}.api</apiPackage> |
127 | | - <invokerPackage>${external.auth.client.package.name}.invoker</invokerPackage> |
| 172 | + <packageName>${feast.auth.providers.http.client.package.name}</packageName> |
| 173 | + <modelPackage>${feast.auth.providers.http.client.package.name}.model</modelPackage> |
| 174 | + <apiPackage>${feast.auth.providers.http.client.package.name}.api</apiPackage> |
| 175 | + <invokerPackage>${feast.auth.providers.http.client.package.name}.invoker</invokerPackage> |
128 | 176 | <configOptions> |
129 | 177 | <groupId>${project.groupId}</groupId> |
130 | 178 | <artifactId>${project.artifactId}</artifactId> |
|
143 | 191 | <groupId>org.apache.maven.plugins</groupId> |
144 | 192 | <artifactId>maven-javadoc-plugin</artifactId> |
145 | 193 | <configuration> |
146 | | - <excludePackageNames>feast.auth.generated.client.api</excludePackageNames> |
| 194 | + <excludePackageNames>feast.auth.providers.http.client.*</excludePackageNames> |
| 195 | + </configuration> |
| 196 | + </plugin> |
| 197 | + <plugin> |
| 198 | + <groupId>org.apache.maven.plugins</groupId> |
| 199 | + <artifactId>maven-surefire-plugin</artifactId> |
| 200 | + <version>3.0.0-M4</version> |
| 201 | + <configuration> |
| 202 | + <argLine>-Xms2048m -Xmx2048m -Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine> |
147 | 203 | </configuration> |
148 | 204 | </plugin> |
149 | 205 | <plugin> |
|
0 commit comments