Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
427 commits
Select commit Hold shift + click to select a range
5a0da48
Fixes field naming in tests.
dmitraver Oct 12, 2017
a43392f
Checks if the prism port is in use.
dmitraver Oct 12, 2017
9b3f92c
Reverts back to running prism in background.
dmitraver Oct 12, 2017
76596eb
Merge branch 'master' into tracking-settings-bug-216
thinkingserious Oct 12, 2017
2464dd8
Adding new line at the end of the file.
sccalabr Oct 13, 2017
e28455d
Adding new line at the end of the file.
sccalabr Oct 13, 2017
a061b8c
Prints debug statement and exception.
dmitraver Oct 13, 2017
6a626f3
Rethrow exception in a test.
dmitraver Oct 13, 2017
1ae3ed2
Reverts debugging statements.
dmitraver Oct 15, 2017
c866a49
Sets MOCK_HOST env variable in travis.
dmitraver Oct 15, 2017
db3f6c7
Update USE_CASES.md
shubheksha Oct 16, 2017
56e8770
Add a way to verify that the content doesn't contain sensitive inform…
diegoc-am Oct 16, 2017
a2e2213
Add links in the table of contents, fix repo name in links
shubheksha Oct 16, 2017
ba59272
add "viewing request body" section to troubleshooting
pushkyn Oct 17, 2017
6517d4a
Update USAGE.md and CONTRIBUTING.md
pushkyn Oct 17, 2017
8948b7f
Merge pull request #281 from pushkyn/update-usage-and-contributing
thinkingserious Oct 17, 2017
66d264b
Merge pull request #280 from pushkyn/troubleshooting-review-request-body
thinkingserious Oct 17, 2017
25fafa8
Prints TRVIS and MOCK_HOST env variables.
dmitraver Oct 20, 2017
ff020fa
Removes TRAVIS related logic from 10 tests.
dmitraver Oct 20, 2017
377892c
More SEO Friendly Section links
pushkyn Oct 20, 2017
0b9c047
Add/Update Badges on README
Oct 20, 2017
802f36d
Removes TRAVIS related logic from all tests.
dmitraver Oct 21, 2017
1df94b5
Update readme - added maven central badge
pushkyn Oct 21, 2017
e224ab2
Spelling corrections in .md files
brandon93s Oct 22, 2017
a74a8df
Making ReadMe/Doc sections more SEO Friendly
shashank135sharma Oct 22, 2017
ab34668
Making README/Doc sections more SEO friendly
shashank135sharma Oct 22, 2017
bbf0d51
Making README/Doc sections more SEO friendly
shashank135sharma Oct 22, 2017
8000a36
Making README/Doc sections more SEO friendly
shashank135sharma Oct 22, 2017
ff37ee0
Update .travis.yml
thinkingserious Oct 22, 2017
37dabf0
Merge pull request #229 from dmitraver/automate-prism-service-159
thinkingserious Oct 22, 2017
f438e94
Merge pull request #299 from brandon93s/spelling
Oct 22, 2017
009fed1
Merge pull request #294 from pushkyn/seo-friendly-section-links
Oct 22, 2017
86e42e6
Merge branch 'master' into master
Oct 22, 2017
b054d96
Merge pull request #300 from shashank135sharma/master
Oct 22, 2017
14dd8c5
Merge pull request #295 from mptap/update-readme
Oct 22, 2017
8820e8d
Merge pull request #296 from pushkyn/readme-maven-badge
Oct 22, 2017
5671dca
update readme - logo on separate line
pushkyn Oct 22, 2017
e0b14ab
Merge pull request #302 from pushkyn/readme-fix-logo
Oct 22, 2017
ce32558
Merge branch 'master' into api
sccalabr Oct 22, 2017
f9b1b92
Addressing comments.
sccalabr Oct 22, 2017
65ce199
Update README.md
shra1cumar Oct 23, 2017
6286caa
Merge branch 'master' of github.com:sendgrid/sendgrid-java into rate_…
andy-trimble Oct 23, 2017
48234ed
Merge branch 'master' of github.com:sendgrid/sendgrid-java into docker
andy-trimble Oct 23, 2017
ac1a990
Fix java package names
btrajkovski Oct 23, 2017
a0a51af
Fix a typo
ajiteshr7 Oct 23, 2017
bd28104
Remove redundant word 'the' from USAGE.md.
Szelmat Oct 23, 2017
447fd60
Merge branch 'master' into add-doc-sections
thinkingserious Oct 23, 2017
484328c
Merge pull request #265 from shubheksha/add-doc-sections
thinkingserious Oct 23, 2017
9b45d75
Merge pull request #305 from shra1cumar/master
Oct 24, 2017
45ac0f2
Merge branch 'master' into patch-1
Oct 24, 2017
fb5368c
Merge pull request #240 from ciceropablo/patch-1
Oct 24, 2017
db0635f
Merge pull request #307 from ajiteshr7/patch-1
Oct 24, 2017
c5df9b8
Merge pull request #308 from Szelmat/patch-1
Oct 24, 2017
22aee87
correction of typo in USAGE.md
pooja7b Oct 24, 2017
e6b838a
Create PULL_REQUEST_TEMPLATE
nishithshah2211 Oct 26, 2017
b9ddb85
Add .env_sample file
thiagobbt Oct 27, 2017
7507c05
Merge pull request #311 from pooja7b/patch-1
Oct 27, 2017
2f198a2
split examples by endpoint
Oct 27, 2017
7112179
split lists/recipients endpoint
Oct 27, 2017
1ca8320
split whitelabel examples by endpoint
Oct 27, 2017
61de103
[issue#336] Possible fix the duplciated code
luan-cestari Oct 28, 2017
7cb6fb1
[issue#336] Fix a generic type mismatch
luan-cestari Oct 28, 2017
aaa28b3
[issue#336] Fix a generic type mismatch
luan-cestari Oct 28, 2017
dc40bc9
Addressing comments.
sccalabr Oct 28, 2017
a61ffe1
Merge pull request #337 from teisena/master
Oct 28, 2017
1844839
Update CONTRIBUTING.md
rkaranam Oct 28, 2017
8500b76
Merge pull request #350 from rkaranam/patch-2
thinkingserious Oct 28, 2017
ccad505
Fix for issue #335
jnmau Oct 28, 2017
b02c534
Added README.md
jnmau Oct 28, 2017
b845405
update LICENSE - fix year
pushkyn Oct 28, 2017
7e4f255
Merge pull request #356 from pushkyn/update-license
Oct 28, 2017
6a32211
Changed file names
jnmau Oct 28, 2017
f638e77
Fixed Typo in README.md
jnmau Oct 28, 2017
2c3455d
Merge pull request #315 from nishithshah2211/pull_req_template
Oct 28, 2017
c81edde
Added unittest to check for specific repo files
Oct 28, 2017
6b64358
Merge pull request #245 from sendgrid/docker
Oct 28, 2017
6380cec
Quick and dirty changes to wait for prism
Oct 28, 2017
dd5ef8c
Updating fix for https://github.com/travis-ci/travis-ci/issues/5227
andy-trimble Oct 28, 2017
b85634b
Merge pull request #366 from sendgrid/mbernier-patch-1
Oct 29, 2017
7640de9
Merge branch 'master' of https://github.com/sendgrid/sendgrid-java in…
mbernier Oct 29, 2017
3e54539
Merge branch 'master' of https://github.com/sendgrid/sendgrid-java in…
mbernier Oct 29, 2017
66cdfb3
Merge branch 'master' of https://github.com/sendgrid/sendgrid-java in…
mbernier Oct 29, 2017
2051122
Merge branch 'master' of https://github.com/sendgrid/sendgrid-java
mbernier Oct 29, 2017
7041d1a
Merge branch 'master' into add-a-verification-before-adding-the-conte…
mbernier Oct 29, 2017
36a2361
remove sudo: false to make prism work
InfiniteCoder Oct 29, 2017
2a71672
update travis.yml to change openjdk7 to openjdk8
InfiniteCoder Oct 29, 2017
06b381e
Fix similar-code issue in examples/accesssettings/accesssettings.java
bhargodevarya Oct 28, 2017
c9e948a
Fix file_lines issue in examples/mailsettings/mailsettings.java
mithunsasidharan Oct 29, 2017
7c4e2e5
Merge pull request #368 from InfiniteCoder/master
thinkingserious Oct 29, 2017
7435a68
Merge pull request #338 from teisena/split_whitelabel
Oct 30, 2017
141848e
Break up the examples in examples/subusers/subusers.java to their own…
huytranrjc Oct 30, 2017
9092169
Fix "similar-code" issue in examples/whitelabel/ips.java
huytranrjc Oct 30, 2017
fdc7dea
Fix "similar-code" issue in examples/whitelabel/ips.java
huytranrjc Oct 30, 2017
6ea8a4d
Merge pull request #1 from sendgrid/master
mithunsasidharan Oct 30, 2017
4423627
update github PR template
pushkyn Oct 30, 2017
3ef1bb0
Merge pull request #381 from pushkyn/simplify-github-pr-template
Oct 30, 2017
91725bf
Refactoring suppression examples
pushkyn Oct 28, 2017
fb8fe56
Merge pull request #339 from luan-cestari/master
Oct 30, 2017
e6a5459
Addressed comments
Oct 30, 2017
c50d75c
Merge pull request #361 from bhargodevarya/333
Oct 31, 2017
056dd67
Changed license file path to .md from .txt
Oct 31, 2017
f4426b1
Merge pull request #362 from mptap/add-test-files-exist
Oct 31, 2017
d3f4f89
Merge pull request #220 from mbarbon/master
thinkingserious Oct 31, 2017
82b2867
Version Bump v4.1.2: PR #220 Alway serialize click-tracking parameters
thinkingserious Oct 31, 2017
fabd726
Add .codeclimate.yml file
rzats Oct 28, 2017
7637df1
Merge pull request #224 from sccalabr/api
thinkingserious Oct 31, 2017
0746a05
Merge branch 'master' into mailTest
thinkingserious Oct 31, 2017
a7f9823
Merge pull request #223 from sccalabr/license
thinkingserious Oct 31, 2017
34f49be
Merge branch 'master' into tracking-settings-bug-216
thinkingserious Oct 31, 2017
f9b4ac4
added source command
Oct 31, 2017
62e1137
Merge pull request #319 from thiagobbt/master
Oct 31, 2017
a6249d6
Merge pull request #373 from mithunsasidharan/master
Nov 1, 2017
2110e54
Merge pull request #228 from dmitraver/tracking-settings-bug-216
thinkingserious Nov 1, 2017
ae18ce7
Merge branch 'master' of github.com:sendgrid/sendgrid-java into rate_…
andy-trimble Nov 2, 2017
9722ac1
Updates jackson dependencies to the latest version.
dmitraver Nov 14, 2017
7c543a4
Merge pull request #345 from rzats/feat/codeclimate-yml
Nov 16, 2017
da70e5a
Merge pull request #359 from pushkyn/refactoring-example-suppression
Nov 16, 2017
e3a9cdf
Test to check year in license file
pushkyn Oct 28, 2017
fe032c9
Merge pull request #365 from pushkyn/test-license-date-range
Nov 21, 2017
22ba9e9
Merge branch 'master' into mailTest
thinkingserious Nov 28, 2017
4d58fcb
Merge pull request #225 from sccalabr/mailTest
thinkingserious Nov 28, 2017
6656b54
Merge pull request #379 from huytranrjc/master
Dec 11, 2017
b98bbd8
Merge pull request #380 from huytranrjc/FIX_374
Dec 11, 2017
0f23918
Merge pull request #249 from sendgrid/rate_limit
thinkingserious Dec 21, 2017
43429da
Merge branch 'master' into add-a-verification-before-adding-the-conte…
thinkingserious Dec 21, 2017
0b7f335
Merge pull request #275 from belfazt/add-a-verification-before-adding…
thinkingserious Dec 21, 2017
1ef503a
Merge pull request #410 from dmitraver/jackson-version-update
thinkingserious May 4, 2018
258f80b
Version Bump v4.2.0: Hacktoberfest rollup release
thinkingserious May 4, 2018
816451f
Version Bump v4.2.1: Update to latest Jackson recommended dependency
thinkingserious May 8, 2018
5437db4
Added dynamic_template_data property
Jul 30, 2018
27206d0
Included generation of dynamic_template_data in testKitchenSink
Jul 30, 2018
56c293f
Updated to demonstrate new Dynamic Templates using helper and renamed…
Jul 30, 2018
c271344
Changed type parameter of dynamicTemplateData
Jul 31, 2018
b871043
Included generation of more complex dynamic template data to testKitc…
Jul 31, 2018
74962e5
Refactor in getDynamicemplateData
Aug 2, 2018
07b0be2
Added coders tag
af4ro Aug 7, 2018
2008480
Merge pull request #451 from sendgrid/af4ro-patch-1
thinkingserious Aug 8, 2018
cced93c
Readability update
af4ro Aug 10, 2018
9a8e3c3
Merge pull request #453 from sendgrid/af4ro-patch-2
thinkingserious Aug 13, 2018
96655f3
Update USE_CASES.md
thinkingserious Aug 21, 2018
23f7c40
Merge branch 'master' into fix-java-packages
af4ro Aug 21, 2018
ff0dc1b
Fixed import errors
af4ro Aug 21, 2018
994fdba
examples and minor code changes
af4ro Aug 21, 2018
83c449a
Update README.md
thatfiredev Sep 30, 2018
18d1dce
Link to the online version of CLA in README.md
bharatr21 Oct 1, 2018
62851d5
Fix alphabetical order
bharatr21 Oct 3, 2018
a448f48
Fix email mention
bharatr21 Oct 3, 2018
e90fd4a
Merge pull request #461 from rosariopfernandes/update-readme
thinkingserious Oct 4, 2018
ca9be79
Fix formatting of README in examples/accesssettings
nathan78906 Oct 5, 2018
ed13646
Merge pull request #463 from Bharat123rox/patch-1
thinkingserious Oct 5, 2018
ffa5a96
Merge pull request #358 from derjayjay/issue-335
thinkingserious Oct 6, 2018
557a150
Merge pull request #475 from nathan78906/patch-1
thinkingserious Oct 11, 2018
bd65fc7
Merge pull request #449 from Markuus13/dynamic-templates-support
thinkingserious Oct 11, 2018
c23507d
Update Docker run path
thinkingserious Oct 11, 2018
4deb2f4
Merge branch 'master' of https://github.com/sendgrid/sendgrid-java
thinkingserious Oct 11, 2018
7591ceb
Version Bump v4.3.0: Dynamic Template support
thinkingserious Oct 11, 2018
ba77a01
Add ability to impersonate subusers
Rohit-T Oct 12, 2018
8a97abe
Update USE_CASES.md
kylearoberts Oct 12, 2018
58ae93a
Update USE_CASES.md
kylearoberts Oct 12, 2018
777abfd
Merge pull request #497 from sendgrid/kylearoberts-patch-1
thinkingserious Oct 13, 2018
e160d8f
Update CONTRIBUTING - using gitflow workflow, development branch inst…
pushkyn Oct 13, 2018
4b1d7a3
Update TROUBLESHOOTING.md
ajloria Oct 17, 2018
9bc569c
Merge pull request #306 from btrajkovski/fix-java-packages
thinkingserious Oct 23, 2018
0865590
Fix link to LICENSE.md
crweiner Oct 25, 2018
1e4e11d
Fix MIT LICENSE Badge
crweiner Oct 26, 2018
7560a8d
Merge pull request #500 from pushkyn/contibuting-gitflow-workflow
thinkingserious Oct 29, 2018
bf0e731
Updating the prerequisites
Rishabh04-02 Oct 29, 2018
3eb85a4
Remove references to 'whitelabel'
crweiner Oct 31, 2018
a1bac90
Fix typos
crweiner Nov 1, 2018
29b7849
Remove more references to 'whitelabel'
crweiner Nov 4, 2018
4757f3f
Merge pull request #521 from Rishabh04-02/patch-1
thinkingserious Nov 18, 2018
aaa532b
Merge pull request #544 from crweiner/whitelabel
thinkingserious Nov 18, 2018
2229214
Useability update.
thinkingserious Apr 4, 2019
182fdd1
Merge pull request #507 from ajloria/patch-1
thinkingserious May 10, 2019
fa601b1
Merge pull request #495 from Rohit-T/404-impersonate-subuser
thinkingserious May 10, 2019
055ac4f
SMS example
thinkingserious May 17, 2019
c1038b2
Twilio branding updates & CLA update
thinkingserious May 17, 2019
663a27f
Fix license test
thinkingserious May 17, 2019
d88d9e5
Fix license test
thinkingserious May 17, 2019
4870ea3
Too many Twilios
thinkingserious May 17, 2019
3d5c483
Merge pull request #569 from sendgrid/twilio
thinkingserious May 17, 2019
ba5464b
Version Bump v4.4.0: Twilio Branding Update + other updates
thinkingserious May 20, 2019
7d83dc3
Version Bump v4.4.1: Package not uploaded correctly
thinkingserious May 20, 2019
4243c36
Update Jackson to 2.9.9
wkurniawan07 Feb 6, 2019
d8267bf
Merge pull request #557 from wkurniawan07/jackson-version
thinkingserious May 28, 2019
64d012f
maven-compiler-plugin 3.8.1 (#574)
sullis Jun 28, 2019
444c0d4
Update build.gradle (#471)
doilio Jul 29, 2019
c9cc438
Fix whitespace errors and typos
friederbluemle Oct 31, 2018
6a5d049
chore: prep the repo for automated release (#599)
eshanholtz Jan 31, 2020
89a4729
[Librarian] Version Bump
twilio-ci Feb 1, 2020
268fd10
Release 4.4.2
twilio-ci Feb 1, 2020
aaef5b4
Version Bump
eshanholtz Feb 4, 2020
1ff2405
Version Bump
eshanholtz Feb 4, 2020
76dcd42
docs: fix typo in README (#590)
brianjester Feb 4, 2020
b71b572
chore: Bump jackson.version from 2.9.9 to 2.10.2 (#602)
dependabot[bot] Feb 4, 2020
f00704b
fix: version command updated
Feb 4, 2020
69ba0d2
fix: use http client version range
eshanholtz Feb 4, 2020
1b2a55e
chore: Remove unnecessary access modifiers on interface methods. (#563)
ethanwood17 Feb 4, 2020
8fc3514
chore: Removed the apiKey instance variable as it wasn't being used (…
RohanTalip Feb 4, 2020
ced880a
docs: fix a minor type in README (#516)
anuragsachdeva28 Feb 4, 2020
c8fb5a6
docs: makes Environmental Variables a sub topic in CONTRIBUTING.md (#…
thepriefy Feb 4, 2020
4c13fa2
docs: baseline all the templated markdown docs (#603)
Feb 4, 2020
38f150c
Merge branch 'update-project' of git://github.com/friederbluemle/send…
Feb 4, 2020
b953701
Merge branch 'friederbluemle-update-project'
Feb 4, 2020
40d073e
docs: Add Code Review to Contributing.md (#402)
derekneuland Feb 4, 2020
63aafd1
docs: Fix GitHub spelling (#604)
friederbluemle Feb 4, 2020
7d8a80f
[Librarian] Version Bump
twilio-ci Feb 5, 2020
0e121cc
Release 4.4.3
twilio-ci Feb 5, 2020
81a170e
fix: update release jar (#608)
eshanholtz Feb 7, 2020
a2157a1
[Librarian] Version Bump
twilio-ci Feb 8, 2020
6037134
Release 4.4.4
twilio-ci Feb 8, 2020
9659ae3
fix: limit HTTP client version range to minor updates
Feb 10, 2020
0742567
docs: Update the link for Google's Style Guide (#540)
RohanTalip Feb 14, 2020
041f7b1
[Librarian] Version Bump
twilio-ci Feb 19, 2020
5b10cf9
Release 4.4.5
twilio-ci Feb 20, 2020
3712a8f
chore: fix JDK Travis failures (#610)
Feb 24, 2020
d274ed2
[Librarian] Version Bump
twilio-ci Mar 18, 2020
d84a9dd
Release 4.4.6
twilio-ci Mar 18, 2020
b476d4c
fix: correct the serialization of Setting to include non-null values …
Mar 18, 2020
5741ac8
docs: fix link to jar file (#615)
eshanholtz Mar 25, 2020
76f5328
docs: support verbiage for login issues (#617)
adamchasetaylor Mar 31, 2020
86a727d
[Librarian] Version Bump
twilio-ci Apr 1, 2020
9a2aacb
Release 4.4.7
twilio-ci Apr 1, 2020
46192aa
fix: correct the User-Agent casing (#618)
Apr 3, 2020
9c456d1
chore: update Travis CI Slack notifications
Apr 3, 2020
d098bfb
Update .travis.yml
Apr 6, 2020
22944b7
docs: cleanup support/help/contact information
Apr 8, 2020
8cc09c5
[Librarian] Version Bump
twilio-ci Apr 15, 2020
2bd232a
Release 4.4.8
twilio-ci Apr 15, 2020
180d408
feat: add support for Twilio Email (#621)
May 6, 2020
2104e0e
feat: verify signature from event webhook (#622)
anujs3 May 7, 2020
83e58d3
[Librarian] Version Bump
twilio-ci May 13, 2020
810be07
Release 4.5.0
twilio-ci May 13, 2020
feabd2c
fix: library version test
twilio-ci May 13, 2020
b50129f
docs: shorten and correct the issue template link
May 29, 2020
217e6ed
feat: add prism Docker setup (#626)
Jun 3, 2020
07b57b7
[Librarian] Version Bump
twilio-ci Jun 10, 2020
eabee46
Release 4.6.0
twilio-ci Jun 10, 2020
3aa96eb
fix: run with openjdk8 in TravisCI
Jun 10, 2020
3239e86
fix: don't use dependency version ranges (#635)
Jul 2, 2020
ee6fad6
[Librarian] Version Bump
twilio-ci Jul 8, 2020
88b85cb
Release 4.6.1
twilio-ci Jul 8, 2020
d9f4413
fix: bouncycastle artifact ID
eshanholtz Jul 8, 2020
c6e6361
docs: fix the kitchen sink example and link to it in the use cases do…
Jul 15, 2020
428ffd5
docs: add multi-recipient examples (#638)
Jul 16, 2020
dece530
chore: migrate to new default sendgrid-oai branch (#639)
eshanholtz Jul 20, 2020
6623bd9
[Librarian] Version Bump
twilio-ci Jul 22, 2020
6773207
Release 4.6.2
twilio-ci Jul 22, 2020
fb76fb4
chore: use HEAD to refer to default branch name
eshanholtz Jul 22, 2020
3be0ca5
fix: remove the content verifier (#642)
Jul 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
plugins:
checkstyle:
enabled: true
fixme:
enabled: true
pmd:
enabled: true
1 change: 1 addition & 0 deletions .env_sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export SENDGRID_API_KEY=''
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ out
.DS_Store
repo
gradle.properties
target
*.class
examples/Example.java
.settings
.classpath
.project
.env
.vscode
sendgrid-java.jar
dependency-reduced-pom.xml
prism*
24 changes: 24 additions & 0 deletions .maven.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0" xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<!-- Maven Central Deployment -->
<id>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>

<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
43 changes: 23 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- openjdk6
after_script:
- ./gradlew build
- ./scripts/s3upload.sh
jdk: openjdk8
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
env:
global:
- S3_POLICY: ewogICJleHBpcmF0aW9uIjogIjIxMDAtMDEtMDFUMTI6MDA6MDAuMDAwWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImFjbCI6ICJwdWJsaWMtcmVhZCIgfSwKICAgIHsiYnVja2V0IjogInNlbmRncmlkLW9wZW4tc291cmNlIiB9LAogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgInNlbmRncmlkLWphdmEvIl0sCiAgICBbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwgMjA0OCwgMjY4NDM1NDU2XSwKICAgIFsiZXEiLCAiJENvbnRlbnQtVHlwZSIsICJhcHBsaWNhdGlvbi96aXAiXQogIF0KfQo=
- secure: Iki1btwhG1nlyjnEMu90Oh/hoatFpPiiKkqpj7siLnlLp2xbBQ2003jRsn30I3Vujes2ugvzdlHqBJ9lDwRvfGrKXcLlRvYuDQ24N2YKquEiKHUxs+iMOzTQj6Sf64KL5O0aSZd1l5rjWgsQ0qqjHW9u3l5bUjqxzrhAI2Js37U=
- secure: Khi6a4z1lfZmDEDV738MOiWznRcTv5ILZUM+igEw2txX7PGX+B5909WridpAijTGiurJ6eda7jvsUgci8DTPQCXB18LD6N870hnPcSQkuI6zDAhKTx+w/ZsfPLWh28sP2CVzbqGdxaitZDKxRWaVmKnBZpyi8XI9UKjmyK2sjwE=
- secure: wKXAjjBgCLM4h++nP1xDQQtYU10JbwwynY0XB920SoQjI2Uu82cMPtkEXFWTpzyIS2hE5B3qvu75VHNdLqDUtek3e3lBg5k3SpYgGin20dg3SDEJrvA4vlvcApdQ132pMEWdDOVwzbXhm9+JTjALYbc3fX+VAQX1u5daPyeDGC4=
- version=8
- version=11
script:
- make test-docker

deploy:
- provider: script
script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
edge: true
on:
tags: true
condition: $version = 8
branch: master

notifications:
hipchat:
slack:
if: branch = master
on_pull_requests: false
on_success: never
on_failure: change
rooms:
secure: U4oMQRXVm23/KtPWJ7FRohyP+2OR7hZKLhZmaqCLuT+Al3UCiniX6fJtS+7tCg/2igERV2PN22HZS9fAhv34tNzTjSvpAk/2T5Exhg0B/FMQZmjxPIcalNL5nmgaY4c1D1Z0teKJrzayOgQEfkEi4SZ8ePiVQUmFMsnV8BmjKRE=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository} Build
%{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/sendgrid/docs/commits/%{commit}">View on GitHub</a>'
format: html
- secure: q2SEemDXFLu/2G2I7oD02+YsM5Q0G27j+b4P1BcReWqVHhRz9L+iyuYWhIXJ6hW0omL5V2XrZ65uqb4f/SD7b89oXRGToVxfykrBzcas1tqIIp9lldd1u2eMc59zALX4nkTlE0T4UFLwEvoeY8aXoD/dNytSy6M2F5c2nYcmoN0=
282 changes: 282 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at open-source@twilio.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
202 changes: 202 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.

**All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.**

- [Feature Request](#feature-request)
- [Submit a Bug Report](#submit-a-bug-report)
- [Please use our Bug Report Template](#please-use-our-bug-report-template)
- [Improvements to the Codebase](#improvements-to-the-codebase)
- [Development Environment](#development-environment)
- [Install and Run Locally](#install-and-run-locally)
- [Prerequisites](#prerequisites)
- [Initial setup:](#initial-setup)
- [Environment Variables](#environment-variables)
- [Execute:](#execute)
- [Understanding the Code Base](#understanding-the-code-base)
- [Testing](#testing)
- [Style Guidelines & Naming Conventions](#style-guidelines--naming-conventions)
- [Creating a Pull Request](#creating-a-pull-request)
- [Code Reviews](#code-reviews)

<a name="roadmap"></a>
We use [Milestones](https://github.com/sendgrid/sendgrid-java/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.

There are a few ways to contribute, which we'll enumerate below:

<a name="feature-request"></a>
## Feature Request

If you'd like to make a feature request, please read this section.

The GitHub issue tracker is the preferred channel for library feature requests, but please respect the following restrictions:

- Please **search for existing issues** in order to ensure we don't have duplicate bugs/feature requests.
- Please be respectful and considerate of others when commenting on issues

<a name="submit-a-bug-report"></a>
## Submit a Bug Report

Note: DO NOT include your credentials in ANY code examples, descriptions, or media you make public.

A software bug is a demonstrable issue in the code base. In order for us to diagnose the issue and respond as quickly as possible, please add as much detail as possible into your bug report.

Before you decide to create a new issue, please try the following:

1. Check the GitHub issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post.
2. Update to the latest version of this code and check if issue has already been fixed
3. Copy and fill in the Bug Report Template we have provided below

### Please use our Bug Report Template

In order to make the process easier, we've included a [sample bug report template](ISSUE_TEMPLATE.md).

<a name="improvements-to-the-codebase"></a>
## Improvements to the Codebase

We welcome direct contributions to the sendgrid-java code base. Thank you!

Please note that we utilize the [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) for Git to help keep project development organized and consistent.

### Development Environment ###

#### Install and Run Locally ####

##### Prerequisites #####

- Java version Oracle JDK 7, 8 or OpenJDK 7
- [java-http-client](https://github.com/sendgrid/java-http-client)

##### Initial setup: #####

```bash
git clone https://github.com/sendgrid/sendgrid-java.git
cd sendgrid-java
```

### Environment Variables

First, get your free Twilio SendGrid account [here](https://sendgrid.com/free?source=sendgrid-java).

Next, update your environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys).

```bash
echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env
./gradlew build
```

##### Execute: #####

See the [examples folder](https://github.com/sendgrid/sendgrid-java/tree/master/examples) to get started quickly.

Check out the documentation for [Web API v3 endpoints](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html).

```bash
./gradlew build
cd examples
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/4.6.2/sendgrid-4.6.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.2/sendgrid-4.6.2-jar.jar:. Example
```

<a name="understanding-the-codebase"></a>
## Understanding the Code Base

**/examples**

Working examples that demonstrate usage.

**/src/test**

Unit and integration tests.

**/src/main**

The interface to the Twilio SendGrid API.

<a name="testing"></a>
## Testing

All PRs require passing tests before the PR will be reviewed.

All test files are in the [`tests`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid) directory.

For the purposes of contributing to this repo, please update the [`SendGridTest.java`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid/SendGridTest.java) file with unit tests as you modify the code.

The integration tests require a Twilio SendGrid mock API in order to execute. We've simplified setting this up using Docker to run the tests. You will just need [Docker Desktop](https://docs.docker.com/get-docker/) and `make`.

Once these are available, simply execute the Docker test target to run all tests: `make test-docker`. This command can also be used to open an interactive shell into the container where this library is installed. To start a *bash* shell for example, use this command: `command=bash make test-docker`.

<a name="style-guidelines-and-naming-conventions"></a>
## Style Guidelines & Naming Conventions

Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning.

Please run your code through:
- [FindBugs](http://findbugs.sourceforge.net/)
- [CheckStyle](http://checkstyle.sourceforge.net/) with [Google's Java Style Guide](https://google.github.io/styleguide/javaguide.html).

<a name="creating-a-pull-request"></a>
## Creating a Pull Request


1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
and configure the remotes:

```bash
# Clone your fork of the repo into the current directory
git clone https://github.com/sendgrid/sendgrid-java

# Navigate to the newly cloned directory
cd sendgrid-java

# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/sendgrid/sendgrid-java
```

2. If you cloned a while ago, get the latest changes from upstream:

```bash
git checkout <dev-branch>
git pull upstream <dev-branch>
```

3. Create a new topic branch (off the main project development branch) to
contain your feature, change, or fix:

```bash
git checkout -b <topic-branch-name> development
```

4. Commit your changes in logical chunks. Please adhere to these [git commit
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your code is unlikely be merged into the main project. Use Git's
[interactive rebase](https://help.github.com/articles/interactive-rebase)
feature to tidy up your commits before making them public.

4a. Create tests.

4b. Create or update the example code that demonstrates the functionality of this change to the code.

5. Locally merge (or rebase) the upstream `development` branch into your topic branch:

```bash
git pull [--rebase] upstream development
```

6. Push your topic branch up to your fork:

```bash
git push origin <topic-branch-name>
```

7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
with a clear title and description against the `master` branch. All tests must be passing before we will review the PR.

## Code Reviews<a name="code-reviews"></a>
If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, GitHub has some <a href="https://help.github.com/articles/about-pull-request-reviews/">great information on how to review a Pull Request.</a>
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ARG version=latest
FROM openjdk:$version

# version <= 11
RUN apt-get update \
&& apt-get install -y make maven || true
COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt
RUN update-ca-certificates || true

# version > 11
RUN yum update -y \
&& yum install -y make wget || true
RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \
&& yum install -y maven || true
RUN keytool -import -trustcacerts -cacerts -storepass changeit -noprompt \
-alias api.sendgrid.com -file /usr/local/share/ca-certificates/cert.crt || true

WORKDIR /app
COPY . .

RUN make install
Loading