Skip to content

Commit 498269a

Browse files
author
elbuo8
committed
Merge branch 'javaism'
Conflicts: src/main/java/com/sendgrid/SendGrid.java src/test/java/com/sendgrid/SendGridTest.java
2 parents dc010d5 + a616798 commit 498269a

3 files changed

Lines changed: 252 additions & 121 deletions

File tree

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apply plugin: 'signing'
1919
group = 'com.sendgrid'
2020
version = "1.0.1"
2121
ext.packaging = 'jar'
22+
sourceCompatibility = 1.6
2223

2324
if (!hasProperty("sonatypeUsername")) {
2425
ext.sonatypeUsername = null
@@ -40,7 +41,9 @@ buildscript {
4041

4142
dependencies {
4243
compile 'com.sendgrid:smtpapi-java:0.0.2'
43-
compile 'com.mashape.unirest:unirest-java:1.3.8'
44+
compile 'org.apache.httpcomponents:httpcore:4.3.2'
45+
compile 'org.apache.httpcomponents:httpclient:4.3.4'
46+
compile 'org.apache.httpcomponents:httpmime:4.3.4'
4447
compile 'org.json:json:20140107'
4548
testCompile group: 'junit', name: 'junit', version: '4.+'
4649
}
@@ -49,6 +52,14 @@ repositories {
4952
mavenCentral()
5053
}
5154

55+
allprojects {
56+
gradle.projectsEvaluated {
57+
tasks.withType(JavaCompile) {
58+
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
59+
}
60+
}
61+
}
62+
5263
// adds 'with-dependencies' to the fatJar name
5364
fatJar {
5465
classifier 'jar'
@@ -143,7 +154,6 @@ uploadArchives {
143154

144155
artifacts {
145156
archives fatJar
146-
147157
archives jar
148158
archives javadocJar
149159
archives sourcesJar

0 commit comments

Comments
 (0)