Skip to content

Commit 3c3ca49

Browse files
Version Bump v4.0.0: PR #162 Update java http client dependency to 4.1.0 from 2.3.4
1 parent 7cff48d commit 3c3ca49

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [4.0.0] - 2017-04-18
5+
### BREAKING CHANGE
6+
- PR #162 Update java http client dependency to [4.1.0 from 2.3.4](https://github.com/sendgrid/java-http-client/releases)
7+
- BIG thanks to [Diego Camargo](https://github.com/belfazt) for the pull request!
8+
- The breaking change is that variables that were public are now private and accessable only via getters and setters
9+
- The `Request` object attributes are now only accessable through getters/setters
10+
- `request.method` is now `request.setMethod(string)`
11+
- `request.endpoint` is now `request.setEndpoint(string)`
12+
- `request.body` is now `request.setBody(string)`
13+
- The `Response` object attributes are now only accessable through getters/setters
14+
- `response.statusCode` is now `response.getStatusCode()`
15+
- `response.body` is now `response.getBody()`
16+
- `response.headers` is now `response.getHeaders()`
17+
- Adding a query parameter goes from:
18+
19+
```java
20+
Map<String,String> queryParams = new HashMap<String, String>(); + request.addQueryParam("limit", "1");
21+
queryParams.put("limit", "1");
22+
request.queryParams = queryParams;
23+
```
24+
25+
to:
26+
27+
```java
28+
request.addQueryParam("limit", "1");
29+
```
30+
431
## [3.2.1] - 2017-04-13
532
### Added
633
- PR #175

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ touch Example.java
102102
Add the example you want to test to Example.java, including the headers at the top of the file.
103103

104104
``` bash
105-
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
105+
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
106106
```
107107

108108
<a name="understanding_the_codebase"></a>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Add the following to your build.gradle file in the root of your project.
5353
...
5454
dependencies {
5555
...
56-
compile 'com.sendgrid:sendgrid-java:3.2.1'
56+
compile 'com.sendgrid:sendgrid-java:4.0.0'
5757
}
5858
5959
repositories {
@@ -72,7 +72,7 @@ mvn install
7272

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

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

7777
## Dependencies
7878

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'maven'
1717
apply plugin: 'signing'
1818

1919
group = 'com.sendgrid'
20-
version = '3.2.1'
20+
version = '4.0.0'
2121
ext.packaging = 'jar'
2222

2323
allprojects {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<groupId>com.sendgrid</groupId>
1010
<artifactId>sendgrid-java</artifactId>
1111
<name>SendGrid Java helper library</name>
12-
<version>3.2.1</version>
12+
<version>4.0.0</version>
1313
<description>This Java module allows you to quickly and easily send emails through SendGrid using Java.</description>
1414
<url>https://github.com/sendgrid/sendgrid-java</url>
1515
<licenses>
@@ -89,7 +89,7 @@
8989
<dependency>
9090
<groupId>com.sendgrid</groupId>
9191
<artifactId>java-http-client</artifactId>
92-
<version>2.3.4</version>
92+
<version>4.1.0</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>com.fasterxml.jackson.core</groupId>

0 commit comments

Comments
 (0)