Skip to content

Commit 5b6b27b

Browse files
committed
Merge pull request #64 from johnclaus/cleanup
Cleanup
2 parents cad7642 + 88b5f4e commit 5b6b27b

3 files changed

Lines changed: 130 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ out
77
.DS_Store
88
repo
99
gradle.properties
10+
target

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ javac -classpath sendgrid-1.2.1-jar.jar:. SendGridExample.java && java -classp
4040

4141
## Installation
4242

43-
Choose your installation method - Maven w/ Gradle (recommended) or Jar file.
43+
Choose your installation method - Maven w/ Gradle (recommended), Maven or Jar file.
4444

4545
### via Maven w/ Gradle
4646

@@ -65,6 +65,12 @@ Then import the library - in the file appropriate to your Java project.
6565
import com.sendgrid.SendGrid;
6666
```
6767

68+
### via Maven
69+
70+
```
71+
mvn install
72+
```
73+
6874
### via jar file
6975

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

pom.xml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>org.sonatype.oss</groupId>
6+
<artifactId>oss-parent</artifactId>
7+
<version>7</version>
8+
</parent>
9+
<groupId>com.sendgrid</groupId>
10+
<artifactId>sendgrid-java</artifactId>
11+
<name>SendGrid Java helper library</name>
12+
<version>2.1.0</version>
13+
<description>This Java module allows you to quickly and easily send emails through SendGrid using Java.</description>
14+
<url>https://github.com/sendgrid/sendgrid-java</url>
15+
<licenses>
16+
<license>
17+
<name>Apache License 2.0</name>
18+
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
19+
<distribution>repo</distribution>
20+
</license>
21+
</licenses>
22+
<scm>
23+
<url>https://github.com/sendgrid/sendgrid-java</url>
24+
<connection>scm:git:git@github.com:sendgrid/sendgrid-java.git</connection>
25+
<developerConnection>scm:git:git@github.com:sendgrid/sendgrid-java.git</developerConnection>
26+
<tag>HEAD</tag>
27+
</scm>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-compiler-plugin</artifactId>
33+
<version>3.1</version>
34+
<configuration>
35+
<source>1.5</source>
36+
<target>1.5</target>
37+
</configuration>
38+
</plugin>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-release-plugin</artifactId>
42+
<version>2.4.2</version>
43+
<dependencies>
44+
<dependency>
45+
<groupId>org.apache.maven.scm</groupId>
46+
<artifactId>maven-scm-provider-gitexe</artifactId>
47+
<version>1.8.1</version>
48+
</dependency>
49+
</dependencies>
50+
</plugin>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-source-plugin</artifactId>
54+
<version>2.2.1</version>
55+
<executions>
56+
<execution>
57+
<id>attach-sources</id>
58+
<goals>
59+
<goal>jar</goal>
60+
</goals>
61+
</execution>
62+
</executions>
63+
</plugin>
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-javadoc-plugin</artifactId>
67+
<version>2.9.1</version>
68+
<executions>
69+
<execution>
70+
<id>attach-javadocs</id>
71+
<goals>
72+
<goal>jar</goal>
73+
</goals>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
</plugins>
78+
</build>
79+
<developers>
80+
<developer>
81+
<id>johnclaus</id>
82+
<name>John Claus</name>
83+
<email>johnclaus@fastmail.fm</email>
84+
<url>http://johnclaus.com</url>
85+
<timezone>-7</timezone>
86+
</developer>
87+
</developers>
88+
<packaging>jar</packaging>
89+
<dependencies>
90+
<dependency>
91+
<groupId>com.sendgrid</groupId>
92+
<artifactId>smtpapi-java</artifactId>
93+
<version>1.1.1</version>
94+
</dependency>
95+
<dependency>
96+
<groupId>org.apache.httpcomponents</groupId>
97+
<artifactId>httpcore</artifactId>
98+
<version>4.3.2</version>
99+
</dependency>
100+
<dependency>
101+
<groupId>org.apache.httpcomponents</groupId>
102+
<artifactId>httpclient</artifactId>
103+
<version>4.3.4</version>
104+
</dependency>
105+
<dependency>
106+
<groupId>org.apache.httpcomponents</groupId>
107+
<artifactId>httpmime</artifactId>
108+
<version>4.3.4</version>
109+
</dependency>
110+
<dependency>
111+
<groupId>org.json</groupId>
112+
<artifactId>json</artifactId>
113+
<version>20140107</version>
114+
</dependency>
115+
<dependency>
116+
<groupId>junit</groupId>
117+
<artifactId>junit-dep</artifactId>
118+
<version>4.10</version>
119+
<scope>test</scope>
120+
</dependency>
121+
</dependencies>
122+
</project>

0 commit comments

Comments
 (0)