Skip to content

Commit 031595f

Browse files
committed
Update pom.xml to deploy to maven central
1 parent 7d842a2 commit 031595f

File tree

2 files changed

+114
-2
lines changed

2 files changed

+114
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
The goal of this project is to provide a hands-on guide on building a scalable, distributed, fault-tolerant, task
44
scheduler platform using Zookeeper in Java.
55

6+
## Maven Dependency
7+
8+
Use the following maven dependency
9+
10+
```
11+
<dependency>
12+
<groupId>com.snehasishroy</groupId>
13+
<artifactId>TaskScheduler</artifactId>
14+
<version>1.0</version>
15+
</dependency>
16+
```
17+
618
## Starting Zookeeper Server
719

820
This service utilizes TTL Nodes which requires Zookeeper Server >= 3.5.4.

pom.xml

Lines changed: 102 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,43 @@
66

77
<groupId>com.snehasishroy</groupId>
88
<artifactId>TaskScheduler</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0</version>
1010
<packaging>jar</packaging>
11-
1211
<name>TaskScheduler</name>
12+
<url>https://github.com/snehasishroy/TaskScheduler</url>
13+
<description>Reference guide on building a scalable, distributed, fault-tolerant, task scheduler platform using
14+
Zookeeper in Java
15+
</description>
16+
<inceptionYear>2024</inceptionYear>
17+
18+
<issueManagement>
19+
<system>GitHub Issues</system>
20+
<url>https://github.com/snehasishroy/TaskScheduler/issues</url>
21+
</issueManagement>
22+
23+
<licenses>
24+
<license>
25+
<name>The Apache Software License, Version 2.0</name>
26+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
27+
<distribution>repo</distribution>
28+
<comments>A business-friendly OSS license</comments>
29+
</license>
30+
</licenses>
31+
32+
<scm>
33+
<connection>scm:git:https://github.com/snehasishroy/TaskScheduler.git</connection>
34+
<developerConnection>scm:git:https://github.com/snehasishroy/TaskScheduler.git</developerConnection>
35+
<tag>HEAD</tag>
36+
<url>https://github.com/snehasishroy/TaskScheduler</url>
37+
</scm>
38+
39+
<developers>
40+
<developer>
41+
<id>snehasishroy</id>
42+
<name>Snehasish Roy</name>
43+
<email>snehasishroy39@gmail.com</email>
44+
</developer>
45+
</developers>
1346

1447
<properties>
1548
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -20,6 +53,7 @@
2053
<dropwizard.version>4.0.1</dropwizard.version>
2154
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2255
</properties>
56+
2357
<dependencyManagement>
2458
<dependencies>
2559
<dependency>
@@ -89,6 +123,56 @@
89123

90124
<build>
91125
<plugins>
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-source-plugin</artifactId>
129+
<version>3.2.0</version>
130+
<executions>
131+
<execution>
132+
<id>attach-sources</id>
133+
<goals>
134+
<goal>jar</goal>
135+
</goals>
136+
</execution>
137+
</executions>
138+
</plugin>
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-gpg-plugin</artifactId>
142+
<version>1.6</version>
143+
<executions>
144+
<execution>
145+
<id>sign-artifacts</id>
146+
<phase>verify</phase>
147+
<goals>
148+
<goal>sign</goal>
149+
</goals>
150+
<configuration>
151+
<useAgent>true</useAgent>
152+
<gpgArguments>
153+
<arg>--pinentry-mode</arg>
154+
<arg>loopback</arg>
155+
</gpgArguments>
156+
<!-- Run something like 'gpg -ab out' to cache the creds
157+
on agent before running if needed
158+
https://central.sonatype.org/publish/publish-portal-maven/#switching-to-ossrh-during-portal-early-access
159+
https://central.sonatype.org/publish/requirements/gpg/
160+
https://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven/
161+
-->
162+
</configuration>
163+
</execution>
164+
</executions>
165+
</plugin>
166+
<plugin>
167+
<groupId>org.sonatype.central</groupId>
168+
<artifactId>central-publishing-maven-plugin</artifactId>
169+
<version>0.4.0</version>
170+
<extensions>true</extensions>
171+
<configuration>
172+
<publishingServerId>central</publishingServerId>
173+
<tokenAuth>true</tokenAuth>
174+
</configuration>
175+
</plugin>
92176
<plugin>
93177
<groupId>org.apache.maven.plugins</groupId>
94178
<artifactId>maven-shade-plugin</artifactId>
@@ -125,6 +209,22 @@
125209
</execution>
126210
</executions>
127211
</plugin>
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-javadoc-plugin</artifactId>
215+
<version>3.6.3</version>
216+
<configuration>
217+
<doclint>all,-missing</doclint>
218+
</configuration>
219+
<executions>
220+
<execution>
221+
<id>attach-javadocs</id>
222+
<goals>
223+
<goal>jar</goal>
224+
</goals>
225+
</execution>
226+
</executions>
227+
</plugin>
128228
</plugins>
129229
</build>
130230

0 commit comments

Comments
 (0)