Skip to content

Commit ebd9d0e

Browse files
finishing build.gradle
1 parent 6a9b1eb commit ebd9d0e

File tree

5 files changed

+58
-31
lines changed

5 files changed

+58
-31
lines changed

examples/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ sourceCompatibility = 1.8
99

1010
repositories {
1111
mavenCentral()
12-
mavenLocal()
13-
maven {
14-
url "${nexusUrl}/repository/maven-releases/"
15-
}
12+
//mavenLocal()
13+
//maven {
14+
// url "${nexusUrl}/repository/maven-releases/"
15+
//}
1616

1717
}
1818

examples/pom.xml

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

injectionApi/build.gradle

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'java'
33
id 'maven'
4+
id 'maven-publish'
45
id 'signing'
56
}
67

@@ -28,14 +29,30 @@ jar {
2829
}
2930
}
3031

32+
signing {
33+
required { gradle.taskGraph.hasTask("uploadArchives") }
34+
sign configurations.archives
35+
}
36+
3137
javadoc {
3238
source = sourceSets.main.allJava
33-
classpath = configurations.compile
39+
classpath = configurations.compileClasspath
3440
}
3541

36-
signing {
37-
required { gradle.taskGraph.hasTask("uploadArchives") }
38-
sign configurations.archives
42+
task sourceJar(type: Jar) {
43+
classifier = 'sources'
44+
from sourceSets.main.allJava
45+
}
46+
47+
task packageJavadoc(type: Jar) {
48+
from javadoc
49+
classifier = 'javadoc'
50+
}
51+
52+
artifacts {
53+
archives jar
54+
archives sourceJar
55+
archives packageJavadoc
3956
}
4057

4158
uploadArchives {
@@ -46,12 +63,12 @@ uploadArchives {
4663
MavenDeployment deployment -> signing.signPom(deployment)
4764
}
4865

49-
repository(url: "${nexusUrl}/repository/maven-releases/") {
50-
authentication(userName: nexusUsername, password: nexusPassword)
66+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
67+
authentication(userName: sonatypeUsername, password: sonatypePassword)
5168
}
5269

53-
snapshotRepository(url: "${nexusUrl}/repository/maven-snapshots") {
54-
authentication(userName: nexusUsername, password: nexusPassword)
70+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
71+
authentication(userName: sonatypeUsername, password: sonatypePassword)
5572
}
5673

5774
pom.project {
@@ -60,7 +77,7 @@ uploadArchives {
6077
artifactId 'injectionApi'
6178
version '1.0.0'
6279

63-
name 'socketlabs-javaa'
80+
name 'socketlabs-java'
6481
packaging 'jar'
6582
description 'SocketLabs Email Delivery Java library'
6683
url 'https://github.com/socketlabs/socketlabs-java/'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
signing.keyId=
2+
signing.password=
3+
signing.secretKeyRingFile=
4+
5+
nexusUsername=
6+
nexusPassword=

injectionApi/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,31 @@
1212
<version>1.0.0</version>
1313
<description>The SocketLabs Email Delivery Java library allows you to easily send email messages via the SocketLabs Injection API.</description>
1414
<url>https://github.com/socketlabs/socketlabs-java</url>
15+
16+
<issueManagement>
17+
<system>GitHub</system>
18+
<url>https://github.com/socketlabs/socketlabs-java/issues</url>
19+
20+
</issueManagement>
1521
<licenses>
1622
<license>
1723
<name>The MIT License (MIT)</name>
1824
<url>https://github.com/socketlabs/socketlabs-java/blob/master/LICENSE</url>
1925
<distribution>repo</distribution>
2026
</license>
2127
</licenses>
28+
2229
<properties>
2330
<jackson.version>2.9.2</jackson.version>
2431
</properties>
32+
2533
<scm>
2634
<url>https://github.com/socketlabs/socketlabs-java</url>
2735
<connection>scm:git:git@github.com:socketlabs/socketlabs-java.git</connection>
2836
<developerConnection>scm:git:git@github.com:socketlabs/socketlabs-java.git</developerConnection>
2937
<tag>HEAD</tag>
3038
</scm>
39+
3140
<build>
3241
<resources>
3342
<resource>
@@ -87,13 +96,20 @@
8796
</plugin>
8897
</plugins>
8998
</build>
99+
90100
<developers>
91101
<developer>
92102
<id>david-schrenker</id>
93103
<name>David Schrenker</name>
94104
</developer>
105+
<developer>
106+
<id>rbrazuk</id>
107+
<name>Ross Brazuk</name>
108+
</developer>
95109
</developers>
110+
96111
<packaging>jar</packaging>
112+
97113
<dependencies>
98114
<dependency>
99115
<groupId>com.fasterxml.jackson.core</groupId>
@@ -110,6 +126,12 @@
110126
<artifactId>okhttp</artifactId>
111127
<version>3.11.0</version>
112128
</dependency>
129+
<dependency>
130+
<groupId>com.google.guava</groupId>
131+
<artifactId>guava</artifactId>
132+
<version>12.0</version>
133+
</dependency>
113134
</dependencies>
135+
114136
</project>
115137

0 commit comments

Comments
 (0)