Skip to content

Commit c3bfd0c

Browse files
Debabrata AcharyaDebabrata Acharya
authored andcommitted
update pom for release to maven central
1 parent 47e28d0 commit c3bfd0c

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

pom.xml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66

77
<name>NSGA-II</name>
88

9+
<parent>
10+
<artifactId>oss-parent</artifactId>
11+
<groupId>org.sonatype.oss</groupId>
12+
<version>9</version>
13+
</parent>
14+
915
<groupId>com.debacharya</groupId>
1016
<artifactId>nsgaii</artifactId>
11-
<version>3.0</version>
17+
<version>3.0.1</version>
1218
<packaging>jar</packaging>
1319

1420
<inceptionYear>2019</inceptionYear>
@@ -34,6 +40,17 @@
3440
<system>GitHub Issues</system>
3541
</issueManagement>
3642

43+
<distributionManagement>
44+
<snapshotRepository>
45+
<id>ossrh</id>
46+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
47+
</snapshotRepository>
48+
<repository>
49+
<id>ossrh</id>
50+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
51+
</repository>
52+
</distributionManagement>
53+
3754
<scm>
3855
<connection>scm:git:git:https://github.com/onclave/NSGA-II.git</connection>
3956
<url>https://github.com/onclave/NSGA-II</url>
@@ -68,6 +85,57 @@
6885

6986
<build>
7087
<plugins>
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-source-plugin</artifactId>
91+
<version>3.2.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-sources</id>
95+
<goals>
96+
<goal>jar-no-fork</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-javadoc-plugin</artifactId>
104+
<version>3.2.0</version>
105+
<executions>
106+
<execution>
107+
<id>attach-javadocs</id>
108+
<goals>
109+
<goal>jar</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-gpg-plugin</artifactId>
117+
<version>1.6</version>
118+
<executions>
119+
<execution>
120+
<id>sign-artifacts</id>
121+
<phase>verify</phase>
122+
<goals>
123+
<goal>sign</goal>
124+
</goals>
125+
</execution>
126+
</executions>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.sonatype.plugins</groupId>
130+
<artifactId>nexus-staging-maven-plugin</artifactId>
131+
<version>1.6.8</version>
132+
<extensions>true</extensions>
133+
<configuration>
134+
<serverId>ossrh</serverId>
135+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
136+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
137+
</configuration>
138+
</plugin>
71139
<plugin>
72140
<groupId>org.owasp</groupId>
73141
<artifactId>dependency-check-maven</artifactId>

0 commit comments

Comments
 (0)