File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ apply plugin: 'signing'
1919group = ' com.sendgrid'
2020version = " 1.0.1"
2121ext. packaging = ' jar'
22+ sourceCompatibility = 1.6
2223
2324if (! hasProperty(" sonatypeUsername" )) {
2425 ext. sonatypeUsername = null
@@ -40,7 +41,9 @@ buildscript {
4041
4142dependencies {
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
5364fatJar {
5465 classifier ' jar'
@@ -143,7 +154,6 @@ uploadArchives {
143154
144155artifacts {
145156 archives fatJar
146-
147157 archives jar
148158 archives javadocJar
149159 archives sourcesJar
You can’t perform that action at this time.
0 commit comments