Created
May 16, 2021 07:51
-
-
Save fullkomnun/94e28268b8b29ed5845255605ddef09a to your computer and use it in GitHub Desktop.
openapi generator java retrofit2 template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenAPI Generator Ignore | |
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | |
# Use this file to prevent files from being overwritten by the generator. | |
# The patterns follow closely to .gitignore or .dockerignore. | |
# As an example, the C# client generator defines ApiClient.cs. | |
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | |
#ApiClient.cs | |
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | |
#foo/*/qux | |
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | |
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | |
#foo/**/qux | |
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | |
# You can also negate patterns with an exclamation (!). | |
# For example, you can ignore all files in a docs folder with the file extension .md: | |
#docs/*.md | |
# Then explicitly reverse the ignore rule for a single file: | |
#!docs/README.md | |
**/OAuthOkHttpClient.java | |
**/AndroidManifest.xml | |
gradle | |
*.gradle | |
*.sbt | |
*.bat | |
*.sh | |
.travis.yml | |
gradlew | |
gradle.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>{{groupId}}</groupId> | |
<artifactId>{{artifactId}}</artifactId> | |
<packaging>jar</packaging> | |
<name>{{artifactId}}</name> | |
<version>{{artifactVersion}}</version> | |
<url>{{artifactUrl}}</url> | |
<description>{{artifactDescription}}</description> | |
<scm> | |
<connection>{{scmConnection}}</connection> | |
<developerConnection>{{scmDeveloperConnection}}</developerConnection> | |
<url>{{scmUrl}}</url> | |
</scm> | |
{{#parentOverridden}} | |
<parent> | |
<groupId>{{{parentGroupId}}}</groupId> | |
<artifactId>{{{parentArtifactId}}}</artifactId> | |
<version>{{{parentVersion}}}</version> | |
</parent> | |
{{/parentOverridden}} | |
<licenses> | |
<license> | |
<name>{{licenseName}}</name> | |
<url>{{licenseUrl}}</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<developers> | |
<developer> | |
<name>{{developerName}}</name> | |
<email>{{developerEmail}}</email> | |
<organization>{{developerOrganization}}</organization> | |
<organizationUrl>{{developerOrganizationUrl}}</organizationUrl> | |
</developer> | |
</developers> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<version>3.0.0-M1</version> | |
<executions> | |
<execution> | |
<id>enforce-maven</id> | |
<goals> | |
<goal>enforce</goal> | |
</goals> | |
<configuration> | |
<rules> | |
<requireMavenVersion> | |
<version>2.2.0</version> | |
</requireMavenVersion> | |
</rules> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.12</version> | |
<configuration> | |
<systemProperties> | |
<property> | |
<name>loggerPath</name> | |
<value>conf/log4j.properties</value> | |
</property> | |
</systemProperties> | |
<argLine>-Xms512m -Xmx1500m</argLine> | |
<parallel>methods</parallel> | |
<forkMode>pertest</forkMode> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${project.build.directory}/lib</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- attach test jar --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.2</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>jar</goal> | |
<goal>test-jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>1.10</version> | |
<executions> | |
<execution> | |
<id>add_sources</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>add-source</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source>src/main/java</source> | |
</sources> | |
</configuration> | |
</execution> | |
<execution> | |
<id>add_test_sources</id> | |
<phase>generate-test-sources</phase> | |
<goals> | |
<goal>add-test-source</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source>src/test/java</source> | |
</sources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.6.1</version> | |
<configuration> | |
{{#java8}} | |
<source>1.8</source> | |
<target>1.8</target> | |
{{/java8}} | |
{{^java8}} | |
<source>1.7</source> | |
<target>1.7</target> | |
{{/java8}} | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>3.1.1</version> | |
<configuration> | |
<doclint>none</doclint> | |
{{#java8}} | |
<source>1.8</source> | |
{{/java8}} | |
{{^java8}} | |
<source>1.7</source> | |
{{/java8}} | |
</configuration> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>jar-no-fork</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>sign-artifacts</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.5</version> | |
<executions> | |
<execution> | |
<id>sign-artifacts</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>sign</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
<dependencies> | |
<dependency> | |
<groupId>io.swagger</groupId> | |
<artifactId>swagger-annotations</artifactId> | |
<version>${swagger-annotations-version}</version> | |
</dependency> | |
<!-- @Nullable annotation --> | |
<dependency> | |
<groupId>com.google.code.findbugs</groupId> | |
<artifactId>jsr305</artifactId> | |
<version>3.0.2</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>converter-gson</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>retrofit</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>converter-scalars</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.gsonfire</groupId> | |
<artifactId>gson-fire</artifactId> | |
<version>${gson-fire-version}</version> | |
</dependency> | |
{{#joda}} | |
<dependency> | |
<groupId>joda-time</groupId> | |
<artifactId>joda-time</artifactId> | |
<version>${jodatime-version}</version> | |
</dependency> | |
{{/joda}} | |
{{#threetenbp}} | |
<dependency> | |
<groupId>org.threeten</groupId> | |
<artifactId>threetenbp</artifactId> | |
<version>${threetenbp-version}</version> | |
</dependency> | |
{{/threetenbp}} | |
{{#useRxJava}} | |
<dependency> | |
<groupId>io.reactivex</groupId> | |
<artifactId>rxjava</artifactId> | |
<version>${rxjava-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>adapter-rxjava</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
{{/useRxJava}} | |
{{#useRxJava2}} | |
<dependency> | |
<groupId>io.reactivex.rxjava2</groupId> | |
<artifactId>rxjava</artifactId> | |
<version>${rxjava-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>adapter-rxjava2</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
{{/useRxJava2}} | |
{{#useRxJava3}} | |
<dependency> | |
<groupId>io.reactivex.rxjava3</groupId> | |
<artifactId>rxjava</artifactId> | |
<version>${rxjava-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.github.akarnokd</groupId> | |
<artifactId>rxjava3-retrofit-adapter</artifactId> | |
<version>3.0.0</version> | |
</dependency> | |
{{/useRxJava3}} | |
{{#usePlayWS}} | |
<!-- JSON processing: jackson --> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>converter-jackson</artifactId> | |
<version>${retrofit-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-core</artifactId> | |
<version>${jackson-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-annotations</artifactId> | |
<version>${jackson-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-databind</artifactId> | |
<version>${jackson-version}</version> | |
</dependency> | |
{{#openApiNullable}} | |
<dependency> | |
<groupId>org.openapitools</groupId> | |
<artifactId>jackson-databind-nullable</artifactId> | |
<version>${jackson-databind-nullable-version}</version> | |
</dependency> | |
{{/openApiNullable}} | |
<dependency> | |
<groupId>com.fasterxml.jackson.datatype</groupId> | |
<artifactId>jackson-datatype-{{^java8}}joda{{/java8}}{{#java8}}jsr310{{/java8}}</artifactId> | |
<version>${jackson-version}</version> | |
</dependency> | |
{{#withXml}} | |
<!-- XML processing: Jackson --> | |
<dependency> | |
<groupId>com.fasterxml.jackson.dataformat</groupId> | |
<artifactId>jackson-dataformat-xml</artifactId> | |
<version>${jackson-version}</version> | |
</dependency> | |
{{/withXml}} | |
{{#play24}} | |
<dependency> | |
<groupId>com.typesafe.play</groupId> | |
<artifactId>play-java-ws_2.11</artifactId> | |
<version>${play-version}</version> | |
</dependency> | |
{{/play24}} | |
{{#play25}} | |
<dependency> | |
<groupId>com.typesafe.play</groupId> | |
<artifactId>play-java-ws_2.11</artifactId> | |
<version>${play-version}</version> | |
</dependency> | |
{{/play25}} | |
{{#play26}} | |
<dependency> | |
<groupId>com.typesafe.play</groupId> | |
<artifactId>play-ahc-ws_2.12</artifactId> | |
<version>${play-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
<version>1.1.0.Final</version> | |
</dependency> | |
{{/play26}} | |
{{/usePlayWS}} | |
{{#parcelableModel}} | |
<!-- Needed for Parcelable support--> | |
<dependency> | |
<groupId>com.google.android</groupId> | |
<artifactId>android</artifactId> | |
<version>4.1.1.4</version> | |
<scope>provided</scope> | |
</dependency> | |
{{/parcelableModel}} | |
<dependency> | |
<groupId>javax.annotation</groupId> | |
<artifactId>javax.annotation-api</artifactId> | |
<version>${javax-annotation-version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<!-- test dependencies --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit-version}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> | |
<maven.compiler.source>${java.version}</maven.compiler.source> | |
<maven.compiler.target>${java.version}</maven.compiler.target> | |
<gson-fire-version>1.8.5</gson-fire-version> | |
<swagger-annotations-version>1.5.22</swagger-annotations-version> | |
{{#usePlayWS}} | |
<jackson-version>2.12.1</jackson-version> | |
{{#play24}} | |
<play-version>2.4.11</play-version> | |
{{/play24}} | |
{{#play25}} | |
<play-version>2.5.15</play-version> | |
{{/play25}} | |
{{#play26}} | |
<play-version>2.6.7</play-version> | |
{{/play26}} | |
{{#openApiNullable}} | |
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version> | |
{{/openApiNullable}} | |
{{/usePlayWS}} | |
<retrofit-version>2.9.0</retrofit-version> | |
{{#useRxJava}} | |
<rxjava-version>1.3.0</rxjava-version> | |
{{/useRxJava}} | |
{{#useRxJava2}} | |
<rxjava-version>2.1.1</rxjava-version> | |
{{/useRxJava2}} | |
{{#useRxJava3}} | |
<rxjava-version>3.0.4</rxjava-version> | |
{{/useRxJava3}} | |
{{#joda}} | |
<jodatime-version>2.9.9</jodatime-version> | |
{{/joda}} | |
{{#threetenbp}} | |
<threetenbp-version>1.4.0</threetenbp-version> | |
{{/threetenbp}} | |
<javax-annotation-version>1.3.2</javax-annotation-version> | |
<junit-version>4.13.1</junit-version> | |
</properties> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment