Skip to content

Commit bac0caf

Browse files
pom updates for uploading to sonatype maven central
1 parent d94a262 commit bac0caf

File tree

12 files changed

+303
-56
lines changed

12 files changed

+303
-56
lines changed

pom.xml

Lines changed: 94 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,33 @@
99
<version>1.0.0.RC6</version>
1010
<packaging>pom</packaging>
1111

12-
<name>spring-lemon</name>
12+
<name>${project.groupId}:${project.artifactId}</name>
1313
<description>Helper library for Spring Boot Web Applications</description>
14+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
15+
16+
<licenses>
17+
<license>
18+
<name>Apache License, Version 2.0</name>
19+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<developers>
25+
<developer>
26+
<name>Sanjay Patel</name>
27+
<email>skpatel20@gmail.com</email>
28+
<organization>naturalprogrammer.com</organization>
29+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
30+
</developer>
31+
</developers>
32+
33+
<scm>
34+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
35+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
36+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
37+
<tag>HEAD</tag>
38+
</scm>
1439

1540
<parent>
1641
<groupId>org.springframework.boot</groupId>
@@ -58,32 +83,15 @@
5883
<plugins>
5984

6085
<plugin>
61-
<groupId>org.apache.maven.plugins</groupId>
62-
<artifactId>maven-source-plugin</artifactId>
63-
<executions>
64-
<execution>
65-
<id>attach-sources</id>
66-
<goals>
67-
<goal>jar</goal>
68-
</goals>
69-
</execution>
70-
</executions>
71-
</plugin>
72-
73-
<plugin>
74-
<groupId>org.apache.maven.plugins</groupId>
75-
<artifactId>maven-javadoc-plugin</artifactId>
86+
<groupId>org.sonatype.plugins</groupId>
87+
<artifactId>nexus-staging-maven-plugin</artifactId>
88+
<version>1.6.8</version>
89+
<extensions>true</extensions>
7690
<configuration>
77-
<failOnError>false</failOnError>
91+
<serverId>ossrh</serverId>
92+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
93+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
7894
</configuration>
79-
<executions>
80-
<execution>
81-
<id>attach-javadocs</id>
82-
<goals>
83-
<goal>jar</goal>
84-
</goals>
85-
</execution>
86-
</executions>
8795
</plugin>
8896

8997
</plugins>
@@ -119,4 +127,65 @@
119127
</pluginRepository>
120128
</pluginRepositories>
121129

130+
<distributionManagement>
131+
<snapshotRepository>
132+
<id>ossrh</id>
133+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
134+
</snapshotRepository>
135+
</distributionManagement>
136+
137+
<profiles>
138+
<profile>
139+
<id>release</id>
140+
<build>
141+
<plugins>
142+
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-source-plugin</artifactId>
146+
<version>3.2.1</version>
147+
<executions>
148+
<execution>
149+
<id>attach-sources</id>
150+
<goals>
151+
<goal>jar-no-fork</goal>
152+
</goals>
153+
</execution>
154+
</executions>
155+
</plugin>
156+
157+
<plugin>
158+
<groupId>org.apache.maven.plugins</groupId>
159+
<artifactId>maven-javadoc-plugin</artifactId>
160+
<version>3.2.0</version>
161+
<executions>
162+
<execution>
163+
<id>attach-javadocs</id>
164+
<goals>
165+
<goal>jar</goal>
166+
</goals>
167+
</execution>
168+
</executions>
169+
</plugin>
170+
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-gpg-plugin</artifactId>
174+
<version>1.6</version>
175+
<executions>
176+
<execution>
177+
<id>sign-artifacts</id>
178+
<phase>verify</phase>
179+
<goals>
180+
<goal>sign</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
185+
186+
</plugins>
187+
</build>
188+
</profile>
189+
</profiles>
190+
122191
</project>

spring-lemon-commons-jpa/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,33 @@
77
<artifactId>spring-lemon-commons-jpa</artifactId>
88
<packaging>jar</packaging>
99

10-
<name>spring-lemon-commons-jpa</name>
10+
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>Spring Lemon Commons JPA</description>
12+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
13+
14+
<licenses>
15+
<license>
16+
<name>Apache License, Version 2.0</name>
17+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Sanjay Patel</name>
25+
<email>skpatel20@gmail.com</email>
26+
<organization>naturalprogrammer.com</organization>
27+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
33+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
34+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
35+
<tag>HEAD</tag>
36+
</scm>
1237

1338
<parent>
1439
<groupId>com.naturalprogrammer</groupId>

spring-lemon-commons-mongo/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,33 @@
77
<artifactId>spring-lemon-commons-mongo</artifactId>
88
<packaging>jar</packaging>
99

10-
<name>spring-lemon-commons-mongo</name>
10+
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>Spring Lemon Commons MongoDB</description>
12+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
13+
14+
<licenses>
15+
<license>
16+
<name>Apache License, Version 2.0</name>
17+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Sanjay Patel</name>
25+
<email>skpatel20@gmail.com</email>
26+
<organization>naturalprogrammer.com</organization>
27+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
33+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
34+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
35+
<tag>HEAD</tag>
36+
</scm>
1237

1338
<parent>
1439
<groupId>com.naturalprogrammer</groupId>

spring-lemon-commons-reactive/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,33 @@
77
<artifactId>spring-lemon-commons-reactive</artifactId>
88
<packaging>jar</packaging>
99

10-
<name>spring-lemon-commons-reactive</name>
10+
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>>Helper reactive commons library for Spring Boot REST APIs</description>
12+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
13+
14+
<licenses>
15+
<license>
16+
<name>Apache License, Version 2.0</name>
17+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Sanjay Patel</name>
25+
<email>skpatel20@gmail.com</email>
26+
<organization>naturalprogrammer.com</organization>
27+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
33+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
34+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
35+
<tag>HEAD</tag>
36+
</scm>
1237

1338
<parent>
1439
<groupId>com.naturalprogrammer</groupId>

spring-lemon-commons-reactive/src/main/java/com/naturalprogrammer/spring/lemon/commonsreactive/security/LemonCommonsReactiveSecurityConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ protected ReactiveAuthenticationManager tokenAuthenticationManager() {
125125

126126
/**
127127
* Default behaviour is to throw error. To be overridden in auth service.
128-
*
129-
* @param username
130-
* @return
131128
*/
132129
protected Mono<UserDto> fetchUserDto(JWTClaimsSet claims) {
133130
return Mono.error(new AuthenticationCredentialsNotFoundException(

spring-lemon-commons-web/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,33 @@
77
<artifactId>spring-lemon-commons-web</artifactId>
88
<packaging>jar</packaging>
99

10-
<name>spring-lemon-commons-web</name>
10+
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>>Helper commons web library for Spring Boot REST APIs</description>
12+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
13+
14+
<licenses>
15+
<license>
16+
<name>Apache License, Version 2.0</name>
17+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Sanjay Patel</name>
25+
<email>skpatel20@gmail.com</email>
26+
<organization>naturalprogrammer.com</organization>
27+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
33+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
34+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
35+
<tag>HEAD</tag>
36+
</scm>
1237

1338
<parent>
1439
<groupId>com.naturalprogrammer</groupId>

spring-lemon-commons/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,33 @@
88
<artifactId>spring-lemon-commons</artifactId>
99
<packaging>jar</packaging>
1010

11-
<name>spring-lemon-commons</name>
11+
<name>${project.groupId}:${project.artifactId}</name>
1212
<description>Helper library for Spring Boot Web Applications</description>
13+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
14+
15+
<licenses>
16+
<license>
17+
<name>Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
<distribution>repo</distribution>
20+
</license>
21+
</licenses>
22+
23+
<developers>
24+
<developer>
25+
<name>Sanjay Patel</name>
26+
<email>skpatel20@gmail.com</email>
27+
<organization>naturalprogrammer.com</organization>
28+
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
29+
</developer>
30+
</developers>
31+
32+
<scm>
33+
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
34+
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
35+
<url>https://github.com/naturalprogrammer/spring-lemon</url>
36+
<tag>HEAD</tag>
37+
</scm>
1338

1439
<parent>
1540
<groupId>com.naturalprogrammer</groupId>

spring-lemon-commons/src/main/java/com/naturalprogrammer/spring/lemon/commons/AbstractLemonService.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public abstract class AbstractLemonService
5050
/**
5151
* This method is called after the application is ready.
5252
* Needs to be public - otherwise Spring screams.
53-
*
54-
* @param event
5553
*/
5654
@EventListener
5755
public void afterApplicationReady(ApplicationReadyEvent event) {
@@ -158,8 +156,6 @@ protected void sendVerificationMail(final U user, String verifyLink) {
158156

159157
/**
160158
* Mails the forgot password link.
161-
*
162-
* @param user
163159
*/
164160
public void mailForgotPasswordLink(U user) {
165161

0 commit comments

Comments
 (0)