Skip to content

Commit 1841097

Browse files
author
elbuo8
committed
Merge branch 'master' of github.com:sendgrid/sendgrid-java
2 parents c6691b3 + 49d1e64 commit 1841097

4 files changed

Lines changed: 16 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: java
22
jdk:
3+
- oraclejdk8
34
- oraclejdk7
45
- openjdk7
56
- openjdk6

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import com.sendgrid.*;
1010

1111
public class SendGridExample {
1212
public static void main(String[] args) {
13-
SendGrid sendgrid = new SendGrid(System.getenv("SENDGRID_USERNAME"), System.getenv("SENDGRID_PASSWORD"));
13+
SendGrid sendgrid = new SendGrid("SENDGRID USERNAME", "SENDGRID_PASSWORD");
1414

1515
SendGrid.Email email = new SendGrid.Email();
1616
email.addTo("example@example.com");
@@ -31,7 +31,7 @@ public class SendGridExample {
3131
Compile and run this example with
3232

3333
```bash
34-
$ javac -classpath sendgrid-1.2.0-jar.jar:. SendGridExample.java && java -classpath sendgrid-1.2.0-jar.jar:. SendGridExample
34+
$ javac -classpath sendgrid-1.2.1-jar.jar:. SendGridExample.java && java -classpath sendgrid-1.2.1-jar.jar:. SendGridExample
3535
```
3636

3737
## Installation
@@ -46,7 +46,7 @@ Add the following to your build.gradle file in the root of your project.
4646
...
4747
dependencies {
4848
...
49-
compile 'com.sendgrid:sendgrid-java:1.2.0'
49+
compile 'com.sendgrid:sendgrid-java:1.2.1'
5050
}
5151
5252
repositories {
@@ -61,6 +61,16 @@ Then import the library - in the file appropriate to your Java project.
6161
import com.sendgrid.SendGrid;
6262
```
6363

64+
### via jar file
65+
66+
You can just drop the jar file in. It's a fat jar - it has all the dependencies built in.
67+
68+
[sendgrid-java.jar](https://sendgrid-open-source.s3.amazonaws.com/sendgrid-java/sendgrid-java.jar)
69+
70+
```java
71+
import com.sendgrid.*;
72+
```
73+
6474
## Usage
6575

6676
To begin using this library, initialize the SendGrid object with your SendGrid credentials.

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 = "1.2.0"
20+
version = "1.2.1"
2121
ext.packaging = 'jar'
2222

2323
allprojects {

src/main/java/com/sendgrid/SendGrid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.http.entity.ContentType;
2929

3030
public class SendGrid {
31-
private static final String VERSION = "1.2.0";
31+
private static final String VERSION = "1.2.1";
3232
private static final String USER_AGENT = "sendgrid/" + VERSION + ";java";
3333

3434
private static final String PARAM_TO = "to[%d]";

0 commit comments

Comments
 (0)