[Java][resttemplate] fixed build.gradle (#6020)

* fix build.gradle for resttemplate

* rename pom.xml id to avoid dup
This commit is contained in:
wing328 2017-07-11 18:33:53 +08:00 committed by GitHub
parent 898ead17fe
commit 42b77a303b
4 changed files with 7 additions and 3 deletions

View File

@ -149,7 +149,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
.SERIALIZE_BIG_DECIMAL_AS_STRING_DESC));
cliOptions.add(CliOption.newBoolean(FULL_JAVA_UTIL, "whether to use fully qualified name for classes under java.util. This option only works for Java API client"));
cliOptions.add(new CliOption("hideGenerationTimestamp", "hides the timestamp when files were generated"));
cliOptions.add(CliOption.newBoolean(WITH_XML, "whether to include support for application/xml content type. This option only works for Java API client"));
cliOptions.add(CliOption.newBoolean(WITH_XML, "whether to include support for application/xml content type. This option only works for Java API client (resttemplate)"));
CliOption dateLibrary = new CliOption(DATE_LIBRARY, "Option. Date library to use");
Map<String, String> dateOptions = new HashMap<String, String>();

View File

@ -127,5 +127,8 @@ dependencies {
compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
compile "joda-time:joda-time:$jodatime_version"
{{/java8}}
{{#withXml}}
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version"
{{/withXml}}
testCompile "junit:junit:$junit_version"
}

View File

@ -110,5 +110,6 @@ dependencies {
compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
compile "joda-time:joda-time:$jodatime_version"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jackson_version"
testCompile "junit:junit:$junit_version"
}

View File

@ -2,9 +2,9 @@
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>io.swagger</groupId>
<artifactId>swagger-petstore-resttemplate</artifactId>
<artifactId>swagger-petstore-resttemplate-withxml</artifactId>
<packaging>jar</packaging>
<name>swagger-petstore-resttemplate</name>
<name>swagger-petstore-resttemplate-withxml</name>
<version>1.0.0</version>
<url>https://github.com/swagger-api/swagger-codegen</url>
<description>Swagger Java</description>