Skip to content

Commit 1845551

Browse files
authored
chore: add nexus-staging-maven-plugin for auto closing the staging repo (#156)
1 parent b0c80dd commit 1845551

File tree

3 files changed

+110
-3
lines changed

3 files changed

+110
-3
lines changed

function-maven-plugin/pom.xml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
</scm>
1919

2020
<properties>
21-
<maven.compiler.release>8</maven.compiler.release>
22-
<maven.compiler.source>8</maven.compiler.source>
23-
<maven.compiler.target>8</maven.compiler.target>
21+
<maven.compiler.source>11</maven.compiler.source>
22+
<maven.compiler.target>11</maven.compiler.target>
2423
</properties>
2524

2625
<dependencies>
@@ -116,6 +115,19 @@
116115
</execution>
117116
</executions>
118117
</plugin>
118+
<plugin>
119+
<groupId>org.apache.maven.plugins</groupId>
120+
<artifactId>maven-javadoc-plugin</artifactId>
121+
<version>3.1.0</version>
122+
<executions>
123+
<execution>
124+
<id>attach-javadocs</id>
125+
<goals>
126+
<goal>jar</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
</plugin>
119131
<plugin>
120132
<groupId>org.apache.maven.plugins</groupId>
121133
<artifactId>maven-gpg-plugin</artifactId>
@@ -130,6 +142,17 @@
130142
</execution>
131143
</executions>
132144
</plugin>
145+
<plugin>
146+
<groupId>org.sonatype.plugins</groupId>
147+
<artifactId>nexus-staging-maven-plugin</artifactId>
148+
<version>1.6.13</version>
149+
<extensions>true</extensions>
150+
<configuration>
151+
<serverId>sonatype-nexus-snapshots</serverId>
152+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
153+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
154+
</configuration>
155+
</plugin>
133156
</plugins>
134157
</build>
135158
</profile>

functions-framework-api/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@
186186
</execution>
187187
</executions>
188188
</plugin>
189+
<plugin>
190+
<groupId>org.sonatype.plugins</groupId>
191+
<artifactId>nexus-staging-maven-plugin</artifactId>
192+
<version>1.6.13</version>
193+
<extensions>true</extensions>
194+
<configuration>
195+
<serverId>sonatype-nexus-snapshots</serverId>
196+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
197+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
198+
</configuration>
199+
</plugin>
189200
</plugins>
190201
</build>
191202
</profile>

invoker/pom.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,77 @@
4646
</dependency>
4747
</dependencies>
4848
</dependencyManagement>
49+
50+
<distributionManagement>
51+
<snapshotRepository>
52+
<id>sonatype-nexus-snapshots</id>
53+
<name>Sonatype Nexus Snapshots</name>
54+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
55+
</snapshotRepository>
56+
<repository>
57+
<id>sonatype-nexus-staging</id>
58+
<name>Nexus Release Repository</name>
59+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
60+
</repository>
61+
</distributionManagement>
62+
<profiles>
63+
<profile>
64+
<id>sonatype-oss-release</id>
65+
<build>
66+
<plugins>
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-source-plugin</artifactId>
70+
<version>3.2.1</version>
71+
<executions>
72+
<execution>
73+
<id>attach-sources</id>
74+
<goals>
75+
<goal>jar-no-fork</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-javadoc-plugin</artifactId>
83+
<version>3.1.0</version>
84+
<executions>
85+
<execution>
86+
<id>attach-javadocs</id>
87+
<goals>
88+
<goal>jar</goal>
89+
</goals>
90+
</execution>
91+
</executions>
92+
</plugin>
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-gpg-plugin</artifactId>
96+
<version>1.6</version>
97+
<executions>
98+
<execution>
99+
<id>sign-artifacts</id>
100+
<phase>verify</phase>
101+
<goals>
102+
<goal>sign</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.sonatype.plugins</groupId>
109+
<artifactId>nexus-staging-maven-plugin</artifactId>
110+
<version>1.6.13</version>
111+
<extensions>true</extensions>
112+
<configuration>
113+
<serverId>sonatype-nexus-snapshots</serverId>
114+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
115+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
116+
</configuration>
117+
</plugin>
118+
</plugins>
119+
</build>
120+
</profile>
121+
</profiles>
49122
</project>

0 commit comments

Comments
 (0)