Skip to content

Commit

Permalink
Version Bump v4.0.0: PR #162 Update java http client dependency to 4.…
Browse files Browse the repository at this point in the history
…1.0 from 2.3.4
  • Loading branch information
thinkingserious committed May 19, 2017
1 parent 7cff48d commit 3c3ca49
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Change Log
All notable changes to this project will be documented in this file.

## [4.0.0] - 2017-04-18
### BREAKING CHANGE
- PR #162 Update java http client dependency to [4.1.0 from 2.3.4](https://github.com/sendgrid/java-http-client/releases)
- BIG thanks to [Diego Camargo](https://github.com/belfazt) for the pull request!
- The breaking change is that variables that were public are now private and accessable only via getters and setters
- The `Request` object attributes are now only accessable through getters/setters
- `request.method` is now `request.setMethod(string)`
- `request.endpoint` is now `request.setEndpoint(string)`
- `request.body` is now `request.setBody(string)`
- The `Response` object attributes are now only accessable through getters/setters
- `response.statusCode` is now `response.getStatusCode()`
- `response.body` is now `response.getBody()`
- `response.headers` is now `response.getHeaders()`
- Adding a query parameter goes from:

```java
Map<String,String> queryParams = new HashMap<String, String>(); + request.addQueryParam("limit", "1");
queryParams.put("limit", "1");
request.queryParams = queryParams;
```

to:

```java
request.addQueryParam("limit", "1");
```

## [3.2.1] - 2017-04-13
### Added
- PR #175
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ touch Example.java
Add the example you want to test to Example.java, including the headers at the top of the file.

``` bash
javac -classpath ../repo/com/sendgrid/3.2.1/sendgrid-3.2.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/3.2.1/sendgrid-3.2.1-jar.jar:. Example
javac -classpath ../repo/com/sendgrid/4.0.0/sendgrid-4.0.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.0.0/sendgrid-4.0.0-jar.jar:. Example
```

<a name="understanding_the_codebase"></a>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Add the following to your build.gradle file in the root of your project.
...
dependencies {
...
compile 'com.sendgrid:sendgrid-java:3.2.1'
compile 'com.sendgrid:sendgrid-java:4.0.0'
}
repositories {
Expand All @@ -72,7 +72,7 @@ mvn install

You can just drop the jar file in. It's a fat jar - it has all the dependencies built in.

[sendgrid-java.jar](http://repo1.maven.org/maven2/com/sendgrid/sendgrid-java/3.2.1/sendgrid-java-3.2.1-jar.jar)
[sendgrid-java.jar](http://repo1.maven.org/maven2/com/sendgrid/sendgrid-java/4.0.0/sendgrid-java-4.0.0-jar.jar)

## Dependencies

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apply plugin: 'maven'
apply plugin: 'signing'

group = 'com.sendgrid'
version = '3.2.1'
version = '4.0.0'
ext.packaging = 'jar'

allprojects {
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<name>SendGrid Java helper library</name>
<version>3.2.1</version>
<version>4.0.0</version>
<description>This Java module allows you to quickly and easily send emails through SendGrid using Java.</description>
<url>https://github.com/sendgrid/sendgrid-java</url>
<licenses>
Expand Down Expand Up @@ -89,7 +89,7 @@
<dependency>
<groupId>com.sendgrid</groupId>
<artifactId>java-http-client</artifactId>
<version>2.3.4</version>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down

0 comments on commit 3c3ca49

Please sign in to comment.