Skip to content

Commit 6a5d049

Browse files
chore: prep the repo for automated release (#599)
* chore: prep repo for automated releasing Co-authored-by: Elmer Thomas <elmer@ThinkingSerious.com>
1 parent 444c0d4 commit 6a5d049

16 files changed

Lines changed: 3957 additions & 484 deletions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ examples/Example.java
1414
.classpath
1515
.project
1616
.env
17-
.vscode
17+
.vscode
18+
sendgrid-java.jar
19+
dependency-reduced-pom.xml

.maven.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<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
2+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
<servers>
4+
<server>
5+
<!-- Maven Central Deployment -->
6+
<id>ossrh</id>
7+
<username>${env.SONATYPE_USERNAME}</username>
8+
<password>${env.SONATYPE_PASSWORD}</password>
9+
</server>
10+
</servers>
11+
12+
<profiles>
13+
<profile>
14+
<id>ossrh</id>
15+
<activation>
16+
<activeByDefault>true</activeByDefault>
17+
</activation>
18+
<properties>
19+
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
20+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
21+
</properties>
22+
</profile>
23+
</profiles>
24+
</settings>

.travis.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
language: java
22
matrix:
33
include:
4-
- jdk: openjdk8
5-
- jdk: oraclejdk8
4+
- name: 'OpenJDK 7'
5+
jdk: openjdk7
6+
- name: 'OpenJDK 8'
7+
jdk: openjdk8
8+
- name: 'Oracle JDK 7'
9+
jdk: oraclejdk7
10+
- name: 'Oracle JDK 8'
11+
jdk: oraclejdk8
12+
- name: 'OpenJDK 11'
13+
jdk: openjdk11
14+
allow_failures:
15+
- name: 'Oracle JDK 8' # See https://travis-ci.community/t/expected-feature-release-number-in-range-of-9-to-12-but-got-8-installing-oraclejdk8/1345/14
16+
- name: 'OpenJDK 7'
17+
- name: 'Oracle JDK 7'
18+
- name: 'OpenJDK 11'
619
before_script:
7-
- "./scripts/startPrism.sh &"
8-
- sleep 20
9-
before_install:
10-
- cat /etc/hosts # optionally check the content *before*
11-
- sudo hostname "$(hostname | cut -c1-63)"
12-
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
13-
- sudo mv /tmp/hosts /etc/hosts
14-
- cat /etc/hosts # optionally check the content *after*
15-
after_script:
16-
- lsof -i :4010 -S # adds some debugging statements
17-
- "./gradlew build"
18-
- "./scripts/upload.sh"
19-
env:
20-
global:
21-
- S3_POLICY: ewogICJleHBpcmF0aW9uIjogIjIxMDAtMDEtMDFUMTI6MDA6MDAuMDAwWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImFjbCI6ICJwdWJsaWMtcmVhZCIgfSwKICAgIHsiYnVja2V0IjogInNlbmRncmlkLW9wZW4tc291cmNlIiB9LAogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgInNlbmRncmlkLWphdmEvIl0sCiAgICBbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwgMjA0OCwgMjY4NDM1NDU2XSwKICAgIFsiZXEiLCAiJENvbnRlbnQtVHlwZSIsICJhcHBsaWNhdGlvbi96aXAiXQogIF0KfQo=
22-
- secure: Iki1btwhG1nlyjnEMu90Oh/hoatFpPiiKkqpj7siLnlLp2xbBQ2003jRsn30I3Vujes2ugvzdlHqBJ9lDwRvfGrKXcLlRvYuDQ24N2YKquEiKHUxs+iMOzTQj6Sf64KL5O0aSZd1l5rjWgsQ0qqjHW9u3l5bUjqxzrhAI2Js37U=
23-
- secure: Khi6a4z1lfZmDEDV738MOiWznRcTv5ILZUM+igEw2txX7PGX+B5909WridpAijTGiurJ6eda7jvsUgci8DTPQCXB18LD6N870hnPcSQkuI6zDAhKTx+w/ZsfPLWh28sP2CVzbqGdxaitZDKxRWaVmKnBZpyi8XI9UKjmyK2sjwE=
24-
- secure: wKXAjjBgCLM4h++nP1xDQQtYU10JbwwynY0XB920SoQjI2Uu82cMPtkEXFWTpzyIS2hE5B3qvu75VHNdLqDUtek3e3lBg5k3SpYgGin20dg3SDEJrvA4vlvcApdQ132pMEWdDOVwzbXhm9+JTjALYbc3fX+VAQX1u5daPyeDGC4=
25-
notifications:
26-
hipchat:
27-
rooms:
28-
secure: kJyc36IRkovqK3JuMXJuBBkDFkDfZ9iAE8ZziszzL9zNsfY2fAQWDk4bMrFO0yYW9OwRXl0gT97HVYWBZFDhjtstUJxit0lpUB+TNIDw2lqCkOIPxGKgcBB9mDS795QyLJzletObP/guPxbzSNOGLa6+k4GbTtTMXRhjzN6lF0o=
29-
template:
30-
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
31-
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
32-
<a href="https://github.com/sendgrid/%{repository}/commits/%{commit}">View on GitHub</a>'
33-
format: html
34-
notify: true
20+
- "./scripts/startPrism.sh &"
21+
- sleep 20
22+
install:
23+
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
24+
deploy:
25+
- provider: script
26+
script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
27+
edge: true
28+
on:
29+
tags: true
30+
jdk: openjdk8
31+
branch: master

CHANGELOG.md

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

4-
## [4.4.1] - 2019-05-20
4+
[2019-05-20] Version 4.4.1
5+
---------------------------
56
### Fix
67
- 4.4.0 release not deployed properly to Maven
78

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013-2019 Twilio SendGrid, Inc.
3+
Copyright (c) 2013-2020 Twilio SendGrid, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: install test test-integration clean
2+
3+
VERSION := $(shell mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]')
4+
install:
5+
@java -version || (echo "Java is not installed, please install Java >= 7"; exit 1);
6+
mvn clean install -DskipTests=true -Dgpg.skip -B
7+
cp target/sendgrid-java-$(VERSION).jar sendgrid-java.jar
8+
9+
test:
10+
mvn test
11+
12+
test-integration:
13+
./scripts/startPrism.sh &
14+
sleep 5
15+
16+
clean:
17+
mvn clean

build.gradle

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)