github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/okhttp-gson/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-compiler-plugin</artifactId>
    46                  <version>3.8.1</version>
    47                  <configuration>
    48                      <fork>true</fork>
    49                      <meminitial>128m</meminitial>
    50                      <maxmem>512m</maxmem>
    51                      <compilerArgs>
    52                          <arg>-Xlint:all</arg>
    53                          <arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
    54                      </compilerArgs>
    55                  </configuration>
    56              </plugin>
    57              <plugin>
    58                  <groupId>org.apache.maven.plugins</groupId>
    59                  <artifactId>maven-enforcer-plugin</artifactId>
    60                  <version>3.0.0-M1</version>
    61                  <executions>
    62                      <execution>
    63                          <id>enforce-maven</id>
    64                          <goals>
    65                              <goal>enforce</goal>
    66                          </goals>
    67                          <configuration>
    68                              <rules>
    69                                  <requireMavenVersion>
    70                                      <version>2.2.0</version>
    71                                  </requireMavenVersion>
    72                              </rules>
    73                          </configuration>
    74                      </execution>
    75                  </executions>
    76              </plugin>
    77              <plugin>
    78                  <groupId>org.apache.maven.plugins</groupId>
    79                  <artifactId>maven-surefire-plugin</artifactId>
    80                  <version>3.0.0-M4</version>
    81                  <configuration>
    82                      <systemProperties>
    83                          <property>
    84                              <name>loggerPath</name>
    85                              <value>conf/log4j.properties</value>
    86                          </property>
    87                      </systemProperties>
    88                      <argLine>-Xms512m -Xmx1500m</argLine>
    89                      <threadCount>10</threadCount>
    90                  </configuration>
    91              </plugin>
    92              <plugin>
    93                  <artifactId>maven-dependency-plugin</artifactId>
    94                  <executions>
    95                      <execution>
    96                          <phase>package</phase>
    97                          <goals>
    98                              <goal>copy-dependencies</goal>
    99                          </goals>
   100                          <configuration>
   101                              <outputDirectory>${project.build.directory}/lib</outputDirectory>
   102                          </configuration>
   103                      </execution>
   104                  </executions>
   105              </plugin>
   106  
   107              <!-- attach test jar -->
   108              <plugin>
   109                  <groupId>org.apache.maven.plugins</groupId>
   110                  <artifactId>maven-jar-plugin</artifactId>
   111                  <version>2.2</version>
   112                  <executions>
   113                      <execution>
   114                          <goals>
   115                              <goal>jar</goal>
   116                              <goal>test-jar</goal>
   117                          </goals>
   118                      </execution>
   119                  </executions>
   120                  <configuration>
   121                  </configuration>
   122              </plugin>
   123  
   124              <plugin>
   125                  <groupId>org.codehaus.mojo</groupId>
   126                  <artifactId>build-helper-maven-plugin</artifactId>
   127                  <version>1.10</version>
   128                  <executions>
   129                      <execution>
   130                          <id>add_sources</id>
   131                          <phase>generate-sources</phase>
   132                          <goals>
   133                              <goal>add-source</goal>
   134                          </goals>
   135                          <configuration>
   136                              <sources>
   137                                  <source>{{{sourceFolder}}}</source>
   138                              </sources>
   139                          </configuration>
   140                      </execution>
   141                      <execution>
   142                          <id>add_test_sources</id>
   143                          <phase>generate-test-sources</phase>
   144                          <goals>
   145                              <goal>add-test-source</goal>
   146                          </goals>
   147                          <configuration>
   148                              <sources>
   149                                  <source>src/test/java</source>
   150                              </sources>
   151                          </configuration>
   152                      </execution>
   153                  </executions>
   154              </plugin>
   155              <plugin>
   156                  <groupId>org.apache.maven.plugins</groupId>
   157                  <artifactId>maven-javadoc-plugin</artifactId>
   158                  <version>3.1.1</version>
   159                  <executions>
   160                      <execution>
   161                          <id>attach-javadocs</id>
   162                          <goals>
   163                              <goal>jar</goal>
   164                          </goals>
   165                      </execution>
   166                  </executions>
   167                  <configuration>
   168                      <doclint>none</doclint>
   169                      <tags>
   170                          <tag>
   171                              <name>http.response.details</name>
   172                              <placement>a</placement>
   173                              <head>Http Response Details:</head>
   174                          </tag>
   175                      </tags>
   176                  </configuration>
   177              </plugin>
   178              <plugin>
   179                  <groupId>org.apache.maven.plugins</groupId>
   180                  <artifactId>maven-source-plugin</artifactId>
   181                  <version>2.2.1</version>
   182                  <executions>
   183                      <execution>
   184                          <id>attach-sources</id>
   185                          <goals>
   186                              <goal>jar-no-fork</goal>
   187                          </goals>
   188                      </execution>
   189                  </executions>
   190              </plugin>
   191          </plugins>
   192      </build>
   193  
   194      <profiles>
   195          <profile>
   196              <id>sign-artifacts</id>
   197              <build>
   198                  <plugins>
   199                      <plugin>
   200                          <groupId>org.apache.maven.plugins</groupId>
   201                          <artifactId>maven-gpg-plugin</artifactId>
   202                          <version>1.5</version>
   203                          <executions>
   204                              <execution>
   205                                  <id>sign-artifacts</id>
   206                                  <phase>verify</phase>
   207                                  <goals>
   208                                      <goal>sign</goal>
   209                                  </goals>
   210                              </execution>
   211                          </executions>
   212                      </plugin>
   213                  </plugins>
   214              </build>
   215          </profile>
   216      </profiles>
   217  
   218      <dependencies>
   219          <dependency>
   220              <groupId>io.swagger</groupId>
   221              <artifactId>swagger-annotations</artifactId>
   222              <version>${swagger-core-version}</version>
   223          </dependency>
   224          <!-- @Nullable annotation -->
   225          <dependency>
   226              <groupId>com.google.code.findbugs</groupId>
   227              <artifactId>jsr305</artifactId>
   228              <version>3.0.2</version>
   229          </dependency>
   230          <dependency>
   231              <groupId>com.squareup.okhttp3</groupId>
   232              <artifactId>okhttp</artifactId>
   233              <version>${okhttp-version}</version>
   234          </dependency>
   235          <dependency>
   236              <groupId>com.squareup.okhttp3</groupId>
   237              <artifactId>logging-interceptor</artifactId>
   238              <version>${okhttp-version}</version>
   239          </dependency>
   240          <dependency>
   241              <groupId>com.google.code.gson</groupId>
   242              <artifactId>gson</artifactId>
   243              <version>${gson-version}</version>
   244          </dependency>
   245          <dependency>
   246              <groupId>io.gsonfire</groupId>
   247              <artifactId>gson-fire</artifactId>
   248              <version>${gson-fire-version}</version>
   249          </dependency>
   250          {{#hasOAuthMethods}}
   251          <dependency>
   252              <groupId>org.apache.oltu.oauth2</groupId>
   253              <artifactId>org.apache.oltu.oauth2.client</artifactId>
   254              <version>1.0.1</version>
   255          </dependency>
   256          {{/hasOAuthMethods}}
   257          <dependency>
   258              <groupId>org.apache.commons</groupId>
   259              <artifactId>commons-lang3</artifactId>
   260              <version>${commons-lang3-version}</version>
   261          </dependency>
   262          {{#joda}}
   263          <dependency>
   264              <groupId>joda-time</groupId>
   265              <artifactId>joda-time</artifactId>
   266              <version>${jodatime-version}</version>
   267          </dependency>
   268          {{/joda}}
   269          {{#threetenbp}}
   270          <dependency>
   271              <groupId>org.threeten</groupId>
   272              <artifactId>threetenbp</artifactId>
   273              <version>${threetenbp-version}</version>
   274          </dependency>
   275          {{/threetenbp}}
   276          {{#useBeanValidation}}
   277          <!-- Bean Validation API support -->
   278          <dependency>
   279              <groupId>javax.validation</groupId>
   280              <artifactId>validation-api</artifactId>
   281              <version>1.1.0.Final</version>
   282              <scope>provided</scope>
   283          </dependency>
   284          {{/useBeanValidation}}
   285          {{#performBeanValidation}}
   286          <!-- Bean Validation Impl. used to perform BeanValidation -->
   287          <dependency>
   288              <groupId>org.hibernate</groupId>
   289              <artifactId>hibernate-validator</artifactId>
   290              <version>5.4.1.Final</version>
   291          </dependency>
   292          <dependency>
   293              <groupId>javax.el</groupId>
   294              <artifactId>el-api</artifactId>
   295              <version>2.2</version>
   296          </dependency>
   297          {{/performBeanValidation}}
   298          {{#parcelableModel}}
   299          <!-- Needed for Parcelable support-->
   300          <dependency>
   301              <groupId>com.google.android</groupId>
   302              <artifactId>android</artifactId>
   303              <version>4.1.1.4</version>
   304              <scope>provided</scope>
   305          </dependency>
   306          {{/parcelableModel}}
   307          <dependency>
   308              <groupId>javax.annotation</groupId>
   309              <artifactId>javax.annotation-api</artifactId>
   310              <version>${javax-annotation-version}</version>
   311          </dependency>
   312          <!-- test dependencies -->
   313          <dependency>
   314              <groupId>junit</groupId>
   315              <artifactId>junit</artifactId>
   316              <version>${junit-version}</version>
   317              <scope>test</scope>
   318          </dependency>
   319          <dependency>
   320              <groupId>com.squareup.okhttp3</groupId>
   321              <artifactId>mockwebserver</artifactId>
   322              <version>3.14.7</version>
   323              <scope>test</scope>
   324          </dependency>
   325          <dependency>
   326              <groupId>org.openapitools</groupId>
   327              <artifactId>jackson-databind-nullable</artifactId>
   328              <version>0.2.6</version>
   329          </dependency>
   330      </dependencies>
   331      <properties>
   332          <java.version>{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}</java.version>
   333          <maven.compiler.source>${java.version}</maven.compiler.source>
   334          <maven.compiler.target>${java.version}</maven.compiler.target>
   335          <gson-fire-version>1.8.4</gson-fire-version>
   336          <swagger-core-version>1.5.24</swagger-core-version>
   337          <okhttp-version>3.14.7</okhttp-version>
   338          <gson-version>2.8.9</gson-version>
   339          <commons-lang3-version>3.10</commons-lang3-version>
   340          {{#joda}}
   341          <jodatime-version>2.9.9</jodatime-version>
   342          {{/joda}}
   343          {{#threetenbp}}
   344          <threetenbp-version>1.4.3</threetenbp-version>
   345          {{/threetenbp}}
   346          <javax-annotation-version>1.3.2</javax-annotation-version>
   347          <junit-version>4.13.1</junit-version>
   348          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   349      </properties>
   350      <distributionManagement>
   351        <repository>
   352          <id>github</id>
   353          <name>GitHub Packages</name>
   354          <url>https://maven.pkg.github.com/phrase/phrase-java</url>
   355        </repository>
   356      </distributionManagement>
   357  </project>