Change the artifact identifier for the retrofit2-rx sample

This commit is contained in:
Silvio Heuberger 2016-01-22 17:00:26 +01:00
parent d60f7d1186
commit e34706386f
10 changed files with 21 additions and 14 deletions

View File

@ -0,0 +1,4 @@
{
"library": "retrofit2",
"artifactId": "swagger-petstore-retrofit2-rx"
}

View File

@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l java -c bin/java-petstore-retrofit2.json -o samples/client/petstore/java/retrofit2rx -DuseRxJava=true"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l java -c bin/java-petstore-retrofit2rx.json -o samples/client/petstore/java/retrofit2rx -DuseRxJava=true"
java $JAVA_OPTS -jar $executable $ags

View File

@ -71,8 +71,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
install {
repositories.mavenInstaller {

View File

@ -100,8 +100,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>
1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>

View File

@ -1,4 +1,4 @@
# swagger-petstore-retrofit2
# swagger-petstore-retrofit2-rx
## Requirements
@ -25,7 +25,7 @@ After the client libarary is installed/deployed, you can use it in your Maven pr
```xml
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-petstore-retrofit2</artifactId>
<artifactId>swagger-petstore-retrofit2-rx</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>

View File

@ -76,7 +76,7 @@ if(hasProperty('target') && target == 'android') {
install {
repositories.mavenInstaller {
pom.artifactId = 'swagger-petstore-retrofit2'
pom.artifactId = 'swagger-petstore-retrofit2-rx'
}
}

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-retrofit2</artifactId>
<artifactId>swagger-petstore-retrofit2-rx</artifactId>
<packaging>jar</packaging>
<name>swagger-petstore-retrofit2</name>
<name>swagger-petstore-retrofit2-rx</name>
<version>1.0.0</version>
<scm>
<connection>scm:git:git@github.com:swagger-api/swagger-mustache.git</connection>
@ -100,7 +100,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<source>
1.7
</source>
<target>1.7</target>
</configuration>
</plugin>

View File

@ -1 +1 @@
rootProject.name = "swagger-petstore-retrofit2"
rootProject.name = "swagger-petstore-retrofit2-rx"

View File

@ -1,6 +1,6 @@
package io.swagger.client;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-01-22T16:44:03.093+01:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-01-22T16:57:22.418+01:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -6,7 +6,7 @@ import rx.Subscriber;
/**
* Skeleton subscriber for tests that will fail when onError() is called unexpectedly.
*/
public abstract class SkeletonSubscriber<T> extends Subscriber<T>{
public abstract class SkeletonSubscriber<T> extends Subscriber<T> {
public static <T> SkeletonSubscriber<T> failTestOnError() {
return new SkeletonSubscriber<T>() {