Skip to content

Commit

Permalink
pom updates for uploading to sonatype maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
naturalprogrammer committed Aug 21, 2021
1 parent d94a262 commit bac0caf
Show file tree
Hide file tree
Showing 12 changed files with 303 additions and 56 deletions.
119 changes: 94 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,33 @@
<version>1.0.0.RC6</version>
<packaging>pom</packaging>

<name>spring-lemon</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>Helper library for Spring Boot Web Applications</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -58,32 +83,15 @@
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<failOnError>false</failOnError>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
Expand Down Expand Up @@ -119,4 +127,65 @@
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
</profiles>

</project>
27 changes: 26 additions & 1 deletion spring-lemon-commons-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<artifactId>spring-lemon-commons-jpa</artifactId>
<packaging>jar</packaging>

<name>spring-lemon-commons-jpa</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>Spring Lemon Commons JPA</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>com.naturalprogrammer</groupId>
Expand Down
27 changes: 26 additions & 1 deletion spring-lemon-commons-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<artifactId>spring-lemon-commons-mongo</artifactId>
<packaging>jar</packaging>

<name>spring-lemon-commons-mongo</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>Spring Lemon Commons MongoDB</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>com.naturalprogrammer</groupId>
Expand Down
27 changes: 26 additions & 1 deletion spring-lemon-commons-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<artifactId>spring-lemon-commons-reactive</artifactId>
<packaging>jar</packaging>

<name>spring-lemon-commons-reactive</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>>Helper reactive commons library for Spring Boot REST APIs</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>com.naturalprogrammer</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ protected ReactiveAuthenticationManager tokenAuthenticationManager() {

/**
* Default behaviour is to throw error. To be overridden in auth service.
*
* @param username
* @return
*/
protected Mono<UserDto> fetchUserDto(JWTClaimsSet claims) {
return Mono.error(new AuthenticationCredentialsNotFoundException(
Expand Down
27 changes: 26 additions & 1 deletion spring-lemon-commons-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,33 @@
<artifactId>spring-lemon-commons-web</artifactId>
<packaging>jar</packaging>

<name>spring-lemon-commons-web</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>>Helper commons web library for Spring Boot REST APIs</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>com.naturalprogrammer</groupId>
Expand Down
27 changes: 26 additions & 1 deletion spring-lemon-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,33 @@
<artifactId>spring-lemon-commons</artifactId>
<packaging>jar</packaging>

<name>spring-lemon-commons</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>Helper library for Spring Boot Web Applications</description>
<url>https://github.com/naturalprogrammer/spring-lemon</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Sanjay Patel</name>
<email>[email protected]</email>
<organization>naturalprogrammer.com</organization>
<organizationUrl>https://www.naturalprogrammer.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</connection>
<developerConnection>scm:git:git://github.com/naturalprogrammer/spring-lemon.git</developerConnection>
<url>https://github.com/naturalprogrammer/spring-lemon</url>
<tag>HEAD</tag>
</scm>

<parent>
<groupId>com.naturalprogrammer</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public abstract class AbstractLemonService
/**
* This method is called after the application is ready.
* Needs to be public - otherwise Spring screams.
*
* @param event
*/
@EventListener
public void afterApplicationReady(ApplicationReadyEvent event) {
Expand Down Expand Up @@ -158,8 +156,6 @@ protected void sendVerificationMail(final U user, String verifyLink) {

/**
* Mails the forgot password link.
*
* @param user
*/
public void mailForgotPasswordLink(U user) {

Expand Down
Loading

0 comments on commit bac0caf

Please sign in to comment.