Skip to content

Commit cf6017b

Browse files
committed
Deployed to Maven Central
1 parent 9c20bb1 commit cf6017b

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

pom.xml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
http://maven.apache.org/xsd/maven-4.0.0.xsd">
66
<modelVersion>4.0.0</modelVersion>
77

8+
<!-- This parent is requirements for deploy of artifacts to maven central -->
9+
<parent>
10+
<groupId>org.sonatype.oss</groupId>
11+
<artifactId>oss-parent</artifactId>
12+
<version>9</version>
13+
</parent>
14+
815
<groupId>org.checkstyle.autofix</groupId>
916
<artifactId>checkstyle-openrewrite-recipes</artifactId>
1017
<version>1.0.0</version>
@@ -13,6 +20,18 @@
1320
<name>checkstyle openrewrite recipes</name>
1421
<description>Automatically fix Checkstyle violations with OpenRewrite</description>
1522
<url>https://github.com/checkstyle/checkstyle-openrewrite-recipes</url>
23+
<inceptionYear>2025</inceptionYear>
24+
<licenses>
25+
<license>
26+
<name>Apache-2.0</name>
27+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
28+
</license>
29+
</licenses>
30+
<scm>
31+
<connection>scm:git:[email protected]:checkstyle/checkstyle-openrewrite-recipes.git</connection>
32+
<developerConnection>scm:git:[email protected]:checkstyle/checkstyle-openrewrite-recipes.git</developerConnection>
33+
<url>https://github.com/checkstyle/checkstyle-openrewrite-recipes</url>
34+
</scm>
1635

1736
<properties>
1837
<maven.compiler.source>11</maven.compiler.source>
@@ -97,9 +116,27 @@
97116
</systemPropertyVariables>
98117
</configuration>
99118
</plugin>
119+
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-deploy-plugin</artifactId>
123+
<version>4.0.0-beta-2</version>
124+
</plugin>
125+
<plugin>
126+
<groupId>org.sonatype.plugins</groupId>
127+
<artifactId>nexus-staging-maven-plugin</artifactId>
128+
<version>1.7.0</version>
129+
<extensions>true</extensions>
130+
<configuration>
131+
<!-- serverId is ID of a <server> section from Maven's settings.xml
132+
to pick authentication information from
133+
-->
134+
<serverId>sonatype-nexus-staging</serverId>
135+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
136+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
137+
</configuration>
138+
</plugin>
100139
</plugins>
101140
</build>
102141

103-
104-
105-
</project>
142+
</project>

0 commit comments

Comments
 (0)