Skip to content

Commit

Permalink
Use separate dependencies instead of shared-deps
Browse files Browse the repository at this point in the history
* Use Guava 16 for CDI compatibility (#13351, #13383)
* Use Android Json instead of org.json (#13277)

Change-Id: I4f2c2b5c56afb03d09b41a040dec7d60b4563fe8
  • Loading branch information
Artur- committed Feb 28, 2014
1 parent 7faa1f2 commit 6b7ad58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/src/com/vaadin/server/JsonCodec.java
Expand Up @@ -617,7 +617,7 @@ private static Object decodeObject(Type targetType,

return decodedObject;
} catch (Exception e) {
throw new JSONException(e);
throw new JSONException(e.getMessage());
}
}

Expand Down Expand Up @@ -765,7 +765,7 @@ private static EncodeResult encodeObject(Object value, Class<?> valueType,
}
} catch (Exception e) {
// TODO: Should exceptions be handled in a different way?
throw new JSONException(e);
throw new JSONException(e.getMessage());
}
return new EncodeResult(encoded, diff);
}
Expand Down
12 changes: 9 additions & 3 deletions shared/ivy.xml
Expand Up @@ -20,9 +20,15 @@
<artifact type="pom" ext="pom" />
</publications>
<dependencies>
<dependency org="com.vaadin" name="vaadin-shared-deps"
rev="1.0.3" conf="build,ide,test->default" />

<dependency org="com.vaadin.external.flute" name="flute"
rev="1.3.0.gg2" conf="build,ide,test->default" />
<dependency org="com.vaadin.external.streamhtmlparser"
name="streamhtmlparser-jsilver" rev="0.0.10.vaadin1"
conf="build,ide,test->default" />
<dependency org="com.vaadin.external.google" name="guava"
rev="16.0.1.vaadin1" conf="build,ide,test->default" />
<dependency org="com.vaadin.external.google" name="android-json"
rev="0.0.20131108.vaadin1" conf="build,ide,test->default" />
<dependency org="junit" name="junit" rev="4.11"
conf="test,ide -> default" />

Expand Down

0 comments on commit 6b7ad58

Please sign in to comment.