Skip to content

Commit 3fa668b

Browse files
authored
Merge pull request #140 from rosette-api/rosapi-18.12
Rosapi 18.12
2 parents 3cfeb51 + 28a6f98 commit 3fa668b

File tree

10 files changed

+26
-22
lines changed

10 files changed

+26
-22
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
language: java
2-
# Javadoc exclusions don't work with JDK 1.7.
3-
script: mvn -Dmaven.javadoc.skip=true clean verify
2+
script: mvn clean verify
43
jdk:
54
- oraclejdk8
6-
- openjdk7
75
- openjdk8
86

97
# suggested by travis support.

annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.11.103-SNAPSHOT</version>
22+
<version>1.11.104-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-annotations</artifactId>
2525
<name>rosette-api-annotations</name>

api/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.11.103-SNAPSHOT</version>
22+
<version>1.11.104-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api</artifactId>
2525
<name>rosette-api</name>
@@ -61,11 +61,6 @@
6161
<artifactId>httpmime</artifactId>
6262
<version>${http-components-version}</version>
6363
</dependency>
64-
<dependency>
65-
<groupId>com.google.guava</groupId>
66-
<artifactId>guava</artifactId>
67-
<scope>compile</scope>
68-
</dependency>
6964
<dependency>
7065
<groupId>org.slf4j</groupId>
7166
<artifactId>slf4j-api</artifactId>

api/src/main/java/com/basistech/rosette/api/HttpRosetteAPI.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import com.fasterxml.jackson.databind.DeserializationFeature;
3636
import com.fasterxml.jackson.databind.ObjectMapper;
3737
import com.fasterxml.jackson.databind.ObjectWriter;
38-
import com.google.common.io.ByteStreams;
3938
import org.apache.http.Header;
4039
import org.apache.http.HttpEntity;
4140
import org.apache.http.HttpHeaders;
@@ -61,6 +60,7 @@
6160
import org.slf4j.Logger;
6261
import org.slf4j.LoggerFactory;
6362

63+
import java.io.ByteArrayOutputStream;
6464
import java.io.IOException;
6565
import java.io.InputStream;
6666
import java.io.OutputStream;
@@ -159,7 +159,18 @@ private static String getVersion() {
159159
* @throws IOException
160160
*/
161161
private static byte[] getBytes(InputStream is) throws IOException {
162-
return ByteStreams.toByteArray(is);
162+
ByteArrayOutputStream out = new ByteArrayOutputStream();
163+
164+
byte[] buf = new byte[4096];
165+
166+
while (true) {
167+
int r = is.read(buf);
168+
if (r == -1) {
169+
out.flush();
170+
return out.toByteArray();
171+
}
172+
out.write(buf, 0, r);
173+
}
163174
}
164175

165176
private void initClient(String key, List<Header> additionalHeaders) {

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.11.103-SNAPSHOT</version>
22+
<version>1.11.104-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-common</artifactId>
2525
<name>rosette-api-common</name>

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.11.103-SNAPSHOT</version>
23+
<version>1.11.104-SNAPSHOT</version>
2424
</parent>
2525
<groupId>com.basistech.rosette</groupId>
2626
<artifactId>rosette-api-examples</artifactId>

json/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.11.103-SNAPSHOT</version>
23+
<version>1.11.104-SNAPSHOT</version>
2424
</parent>
2525
<artifactId>rosette-api-json</artifactId>
2626
<name>rosette-api-json</name>

model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.11.103-SNAPSHOT</version>
22+
<version>1.11.104-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-model</artifactId>
2525
<name>rosette-api-model</name>

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<modelVersion>4.0.0</modelVersion>
1919
<groupId>com.basistech.rosette</groupId>
2020
<artifactId>rosette-api-java-binding</artifactId>
21-
<version>1.11.103-SNAPSHOT</version>
21+
<version>1.11.104-SNAPSHOT</version>
2222
<parent>
2323
<artifactId>open-source-parent</artifactId>
2424
<groupId>com.basistech</groupId>
25-
<version>1.1.10</version>
25+
<version>2.0.0</version>
2626
<relativePath />
2727
</parent>
2828
<packaging>pom</packaging>
@@ -69,17 +69,17 @@
6969
<dependency>
7070
<groupId>com.basistech</groupId>
7171
<artifactId>common-api</artifactId>
72-
<version>36.2.0</version>
72+
<version>37.0.0</version>
7373
</dependency>
7474
<dependency>
7575
<groupId>com.basistech</groupId>
7676
<artifactId>adm-model</artifactId>
77-
<version>2.4.4</version>
77+
<version>2.4.6</version>
7878
</dependency>
7979
<dependency>
8080
<groupId>com.basistech</groupId>
8181
<artifactId>adm-json</artifactId>
82-
<version>2.4.4</version>
82+
<version>2.4.6</version>
8383
</dependency>
8484
</dependencies>
8585
</dependencyManagement>

release/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.11.103-SNAPSHOT</version>
22+
<version>1.11.104-SNAPSHOT</version>
2323
</parent>
2424
<groupId>com.basistech.rosette</groupId>
2525
<artifactId>rosette-api-release</artifactId>

0 commit comments

Comments
 (0)