github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/retrofit2/pom.mustache (about) 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>{{groupId}}</groupId> 5 <artifactId>{{artifactId}}</artifactId> 6 <packaging>jar</packaging> 7 <name>{{artifactId}}</name> 8 <version>{{artifactVersion}}</version> 9 <url>{{artifactUrl}}</url> 10 <description>{{artifactDescription}}</description> 11 <scm> 12 <connection>{{scmConnection}}</connection> 13 <developerConnection>{{scmDeveloperConnection}}</developerConnection> 14 <url>{{scmUrl}}</url> 15 </scm> 16 {{#parentOverridden}} 17 <parent> 18 <groupId>{{{parentGroupId}}}</groupId> 19 <artifactId>{{{parentArtifactId}}}</artifactId> 20 <version>{{{parentVersion}}}</version> 21 </parent> 22 {{/parentOverridden}} 23 24 <licenses> 25 <license> 26 <name>{{licenseName}}</name> 27 <url>{{licenseUrl}}</url> 28 <distribution>repo</distribution> 29 </license> 30 </licenses> 31 32 <developers> 33 <developer> 34 <name>{{developerName}}</name> 35 <email>{{developerEmail}}</email> 36 <organization>{{developerOrganization}}</organization> 37 <organizationUrl>{{developerOrganizationUrl}}</organizationUrl> 38 </developer> 39 </developers> 40 41 <build> 42 <plugins> 43 <plugin> 44 <groupId>org.apache.maven.plugins</groupId> 45 <artifactId>maven-enforcer-plugin</artifactId> 46 <version>3.0.0-M1</version> 47 <executions> 48 <execution> 49 <id>enforce-maven</id> 50 <goals> 51 <goal>enforce</goal> 52 </goals> 53 <configuration> 54 <rules> 55 <requireMavenVersion> 56 <version>2.2.0</version> 57 </requireMavenVersion> 58 </rules> 59 </configuration> 60 </execution> 61 </executions> 62 </plugin> 63 <plugin> 64 <groupId>org.apache.maven.plugins</groupId> 65 <artifactId>maven-surefire-plugin</artifactId> 66 <version>2.12</version> 67 <configuration> 68 <systemProperties> 69 <property> 70 <name>loggerPath</name> 71 <value>conf/log4j.properties</value> 72 </property> 73 </systemProperties> 74 <argLine>-Xms512m -Xmx1500m</argLine> 75 <parallel>methods</parallel> 76 <forkMode>pertest</forkMode> 77 </configuration> 78 </plugin> 79 <plugin> 80 <artifactId>maven-dependency-plugin</artifactId> 81 <executions> 82 <execution> 83 <phase>package</phase> 84 <goals> 85 <goal>copy-dependencies</goal> 86 </goals> 87 <configuration> 88 <outputDirectory>${project.build.directory}/lib</outputDirectory> 89 </configuration> 90 </execution> 91 </executions> 92 </plugin> 93 94 <!-- attach test jar --> 95 <plugin> 96 <groupId>org.apache.maven.plugins</groupId> 97 <artifactId>maven-jar-plugin</artifactId> 98 <version>2.2</version> 99 <executions> 100 <execution> 101 <goals> 102 <goal>jar</goal> 103 <goal>test-jar</goal> 104 </goals> 105 </execution> 106 </executions> 107 <configuration> 108 </configuration> 109 </plugin> 110 111 <plugin> 112 <groupId>org.codehaus.mojo</groupId> 113 <artifactId>build-helper-maven-plugin</artifactId> 114 <version>1.10</version> 115 <executions> 116 <execution> 117 <id>add_sources</id> 118 <phase>generate-sources</phase> 119 <goals> 120 <goal>add-source</goal> 121 </goals> 122 <configuration> 123 <sources> 124 <source>src/main/java</source> 125 </sources> 126 </configuration> 127 </execution> 128 <execution> 129 <id>add_test_sources</id> 130 <phase>generate-test-sources</phase> 131 <goals> 132 <goal>add-test-source</goal> 133 </goals> 134 <configuration> 135 <sources> 136 <source>src/test/java</source> 137 </sources> 138 </configuration> 139 </execution> 140 </executions> 141 </plugin> 142 <plugin> 143 <groupId>org.apache.maven.plugins</groupId> 144 <artifactId>maven-javadoc-plugin</artifactId> 145 <version>3.1.1</version> 146 <configuration> 147 <doclint>none</doclint> 148 </configuration> 149 <executions> 150 <execution> 151 <id>attach-javadocs</id> 152 <goals> 153 <goal>jar</goal> 154 </goals> 155 </execution> 156 </executions> 157 </plugin> 158 <plugin> 159 <groupId>org.apache.maven.plugins</groupId> 160 <artifactId>maven-source-plugin</artifactId> 161 <version>2.2.1</version> 162 <executions> 163 <execution> 164 <id>attach-sources</id> 165 <goals> 166 <goal>jar-no-fork</goal> 167 </goals> 168 </execution> 169 </executions> 170 </plugin> 171 </plugins> 172 </build> 173 174 <profiles> 175 <profile> 176 <id>sign-artifacts</id> 177 <build> 178 <plugins> 179 <plugin> 180 <groupId>org.apache.maven.plugins</groupId> 181 <artifactId>maven-gpg-plugin</artifactId> 182 <version>1.5</version> 183 <executions> 184 <execution> 185 <id>sign-artifacts</id> 186 <phase>verify</phase> 187 <goals> 188 <goal>sign</goal> 189 </goals> 190 </execution> 191 </executions> 192 </plugin> 193 </plugins> 194 </build> 195 </profile> 196 </profiles> 197 198 <dependencies> 199 <dependency> 200 <groupId>io.swagger</groupId> 201 <artifactId>swagger-annotations</artifactId> 202 <version>${swagger-annotations-version}</version> 203 </dependency> 204 <!-- @Nullable annotation --> 205 <dependency> 206 <groupId>com.google.code.findbugs</groupId> 207 <artifactId>jsr305</artifactId> 208 <version>3.0.2</version> 209 </dependency> 210 <dependency> 211 <groupId>com.squareup.retrofit2</groupId> 212 <artifactId>converter-gson</artifactId> 213 <version>${retrofit-version}</version> 214 </dependency> 215 <dependency> 216 <groupId>com.squareup.retrofit2</groupId> 217 <artifactId>retrofit</artifactId> 218 <version>${retrofit-version}</version> 219 </dependency> 220 <dependency> 221 <groupId>com.squareup.retrofit2</groupId> 222 <artifactId>converter-scalars</artifactId> 223 <version>${retrofit-version}</version> 224 </dependency> 225 <dependency> 226 <groupId>org.apache.oltu.oauth2</groupId> 227 <artifactId>org.apache.oltu.oauth2.client</artifactId> 228 <version>${oltu-version}</version> 229 <exclusions> 230 <exclusion> 231 <groupId>org.apache.oltu.oauth2</groupId> 232 <artifactId>common</artifactId> 233 </exclusion> 234 </exclusions> 235 </dependency> 236 <dependency> 237 <groupId>io.gsonfire</groupId> 238 <artifactId>gson-fire</artifactId> 239 <version>${gson-fire-version}</version> 240 </dependency> 241 {{#joda}} 242 <dependency> 243 <groupId>joda-time</groupId> 244 <artifactId>joda-time</artifactId> 245 <version>${jodatime-version}</version> 246 </dependency> 247 {{/joda}} 248 {{#threetenbp}} 249 <dependency> 250 <groupId>org.threeten</groupId> 251 <artifactId>threetenbp</artifactId> 252 <version>${threetenbp-version}</version> 253 </dependency> 254 {{/threetenbp}} 255 {{#useRxJava}} 256 <dependency> 257 <groupId>io.reactivex</groupId> 258 <artifactId>rxjava</artifactId> 259 <version>${rxjava-version}</version> 260 </dependency> 261 <dependency> 262 <groupId>com.squareup.retrofit2</groupId> 263 <artifactId>adapter-rxjava</artifactId> 264 <version>${retrofit-version}</version> 265 </dependency> 266 {{/useRxJava}} 267 {{#useRxJava2}} 268 <dependency> 269 <groupId>io.reactivex.rxjava2</groupId> 270 <artifactId>rxjava</artifactId> 271 <version>${rxjava-version}</version> 272 </dependency> 273 <dependency> 274 <groupId>com.squareup.retrofit2</groupId> 275 <artifactId>adapter-rxjava2</artifactId> 276 <version>${retrofit-version}</version> 277 </dependency> 278 {{/useRxJava2}} 279 {{#usePlayWS}} 280 <!-- JSON processing: jackson --> 281 <dependency> 282 <groupId>com.squareup.retrofit2</groupId> 283 <artifactId>converter-jackson</artifactId> 284 <version>${retrofit-version}</version> 285 </dependency> 286 <dependency> 287 <groupId>com.fasterxml.jackson.core</groupId> 288 <artifactId>jackson-core</artifactId> 289 <version>${jackson-version}</version> 290 </dependency> 291 <dependency> 292 <groupId>com.fasterxml.jackson.core</groupId> 293 <artifactId>jackson-annotations</artifactId> 294 <version>${jackson-version}</version> 295 </dependency> 296 <dependency> 297 <groupId>com.fasterxml.jackson.core</groupId> 298 <artifactId>jackson-databind</artifactId> 299 <version>${jackson-databind-version}</version> 300 </dependency> 301 <dependency> 302 <groupId>com.fasterxml.jackson.datatype</groupId> 303 <artifactId>jackson-datatype-{{^java8}}joda{{/java8}}{{#java8}}jsr310{{/java8}}</artifactId> 304 <version>${jackson-version}</version> 305 </dependency> 306 {{#withXml}} 307 <!-- XML processing: Jackson --> 308 <dependency> 309 <groupId>com.fasterxml.jackson.dataformat</groupId> 310 <artifactId>jackson-dataformat-xml</artifactId> 311 <version>${jackson-version}</version> 312 </dependency> 313 {{/withXml}} 314 {{#play24}} 315 <dependency> 316 <groupId>com.typesafe.play</groupId> 317 <artifactId>play-java-ws_2.11</artifactId> 318 <version>${play-version}</version> 319 </dependency> 320 <dependency> 321 <groupId>org.openapitools</groupId> 322 <artifactId>jackson-databind-nullable</artifactId> 323 <version>${jackson-databind-nullable-version}</version> 324 </dependency> 325 {{/play24}} 326 {{#play25}} 327 <dependency> 328 <groupId>com.typesafe.play</groupId> 329 <artifactId>play-java-ws_2.11</artifactId> 330 <version>${play-version}</version> 331 </dependency> 332 <dependency> 333 <groupId>org.openapitools</groupId> 334 <artifactId>jackson-databind-nullable</artifactId> 335 <version>${jackson-databind-nullable-version}</version> 336 </dependency> 337 {{/play25}} 338 {{#play26}} 339 <dependency> 340 <groupId>com.typesafe.play</groupId> 341 <artifactId>play-ahc-ws_2.12</artifactId> 342 <version>${play-version}</version> 343 </dependency> 344 <dependency> 345 <groupId>javax.validation</groupId> 346 <artifactId>validation-api</artifactId> 347 <version>1.1.0.Final</version> 348 </dependency> 349 <dependency> 350 <groupId>org.openapitools</groupId> 351 <artifactId>jackson-databind-nullable</artifactId> 352 <version>${jackson-databind-nullable-version}</version> 353 </dependency> 354 {{/play26}} 355 {{/usePlayWS}} 356 {{#parcelableModel}} 357 <!-- Needed for Parcelable support--> 358 <dependency> 359 <groupId>com.google.android</groupId> 360 <artifactId>android</artifactId> 361 <version>4.1.1.4</version> 362 <scope>provided</scope> 363 </dependency> 364 {{/parcelableModel}} 365 <!-- test dependencies --> 366 <dependency> 367 <groupId>junit</groupId> 368 <artifactId>junit</artifactId> 369 <version>${junit-version}</version> 370 <scope>test</scope> 371 </dependency> 372 </dependencies> 373 <properties> 374 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 375 <java.version>{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}</java.version> 376 <maven.compiler.source>${java.version}</maven.compiler.source> 377 <maven.compiler.target>${java.version}</maven.compiler.target> 378 <gson-fire-version>1.8.3</gson-fire-version> 379 <swagger-annotations-version>1.5.22</swagger-annotations-version> 380 {{#usePlayWS}} 381 <jackson-databind-version>2.10.3</jackson-databind-version> 382 {{#play24}} 383 <jackson-version>2.6.6</jackson-version> 384 <play-version>2.4.11</play-version> 385 {{/play24}} 386 {{#play25}} 387 <jackson-version>2.10.3</jackson-version> 388 <play-version>2.5.15</play-version> 389 {{/play25}} 390 {{#play26}} 391 <jackson-version>2.10.3</jackson-version> 392 <play-version>2.6.7</play-version> 393 {{/play26}} 394 <jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version> 395 {{/usePlayWS}} 396 <retrofit-version>2.5.0</retrofit-version> 397 {{#useRxJava}} 398 <rxjava-version>1.3.0</rxjava-version> 399 {{/useRxJava}} 400 {{#useRxJava2}} 401 <rxjava-version>2.1.1</rxjava-version> 402 {{/useRxJava2}} 403 {{#joda}} 404 <jodatime-version>2.9.9</jodatime-version> 405 {{/joda}} 406 {{#threetenbp}} 407 <threetenbp-version>1.4.0</threetenbp-version> 408 {{/threetenbp}} 409 <oltu-version>1.0.1</oltu-version> 410 <junit-version>4.13</junit-version> 411 </properties> 412 </project>