Please update to the latest generated snapshot jars: http://code.google.com/p/google-api-java-client/source/browse/com/google/apis/google-api-services-books/v1-1.2.0-beta-SNAPSHOT/google-api-services-books-v1-1.2.0-beta-SNAPSHOT.pom?repo=mavenrepo
14 years, 2 months ago
(2011-08-09 15:49:14 UTC)
#3
I updated pom.xml to use the new generated snapshot jars with: <dependency> <groupId>com.google.apis</groupId> <artifactId>google-api-services-books</artifactId> <version>v1-1.2.0-beta-SNAPSHOT</version> ...
14 years, 2 months ago
(2011-08-09 16:13:13 UTC)
#4
I updated pom.xml to use the new generated snapshot jars with:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-books</artifactId>
<version>v1-1.2.0-beta-SNAPSHOT</version>
</dependency>
as opposed to:
<dependency>
<groupId>com.google.api.services.books</groupId>
<artifactId>google-api-services-books-v1</artifactId>
<version>1.2.0-beta-SNAPSHOT</version>
</dependency>
But setKey still gives a compilation error in BooksSample.java
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
File books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java
(left):
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java:59: if
(API_KEY != null && API_KEY.length() > 0) {
On 2011/08/09 13:53:32, yanivi wrote:
> don't need the if-statement, just always set it
Done.
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
File books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java
(right):
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java:15:
package com.google.api.client.sample.books;
On 2011/08/09 13:53:32, yanivi wrote:
> for consistency please rename package to
> com.google.api.services.samples.books.cmdline
Done.
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java:60:
books.setApiKey(API_KEY);
On 2011/08/09 13:53:32, yanivi wrote:
> use setKey instead
Done.
http://codereview.appspot.com/4844054/diff/6001/books-cmdline-sample/com/goog...
books-cmdline-sample/com/google/api/client/sample/books/BooksSample.java:174: if
(!e.getResponse().getContentType().equals(Json.CONTENT_TYPE)) {
On 2011/08/09 13:53:32, yanivi wrote:
> to handle the rare case of getContentType() == null, better to write it as if
> (!Json.CONTENT_TYPE.equals(...
Done.
http://codereview.appspot.com/4844054/diff/8003/books-cmdline-sample/.classpath File books-cmdline-sample/.classpath (right): http://codereview.appspot.com/4844054/diff/8003/books-cmdline-sample/.classpath#newcode3 books-cmdline-sample/.classpath:3: <classpathentry kind="src" path="."/> the convention in Maven is that ...
14 years, 2 months ago
(2011-08-09 20:13:46 UTC)
#6
Issue 4844054: Updating books-v1-json-cmdline-sample to use the new generated library based on 1.5
(Closed)
Created 14 years, 2 months ago by rmistry
Modified 14 years, 2 months ago
Reviewers: yanivi
Base URL:
Comments: 20