Skip to content

Commit 711e23a

Browse files
committed
Prepare pom.xml for automatic releasing
1 parent f8ab2bc commit 711e23a

File tree

1 file changed

+130
-13
lines changed

1 file changed

+130
-13
lines changed

pom.xml

Lines changed: 130 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<version>2.0.0-SNAPSHOT</version>
1414

1515
<name>throwing-function</name>
16-
<packaging>bundle</packaging>
16+
<packaging>jar</packaging>
1717

1818
<description>Java 8+ functional interfaces with enhanced checked exceptions support</description>
1919
<url>https://github.com/pivovarit/throwing-function</url>
@@ -24,22 +24,23 @@
2424
<email>[email protected]</email>
2525
<url>4comprehension.com</url>
2626
<organization>4comprehension</organization>
27-
<id>gpiwowarek</id>
27+
<id>pivovarit</id>
2828
</developer>
2929
</developers>
3030

3131
<licenses>
3232
<license>
3333
<name>The Apache License, Version 2.0</name>
34-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
34+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
3535
</license>
3636
</licenses>
3737

3838
<scm>
3939
<url>https://github.com/pivovarit/throwing-function</url>
4040
<connection>scm:git:[email protected]:pivovarit/throwing-function.git</connection>
4141
<developerConnection>scm:git:[email protected]:pivovarit/throwing-function.git</developerConnection>
42-
</scm>
42+
<tag>HEAD</tag>
43+
</scm>
4344

4445
<issueManagement>
4546
<url>https://github.com/pivovarit/throwing-function/issues</url>
@@ -48,39 +49,144 @@
4849

4950
<properties>
5051
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
51-
<junit.version>5.9.1</junit.version>
52+
<junit.version>5.11.0</junit.version>
5253
<assertj.version>3.26.3</assertj.version>
5354
</properties>
5455

56+
<profiles>
57+
<profile>
58+
<id>sonatype-oss-release</id>
59+
<build>
60+
<plugins>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-source-plugin</artifactId>
64+
<version>3.3.1</version>
65+
<executions>
66+
<execution>
67+
<id>attach-sources</id>
68+
<goals>
69+
<goal>jar-no-fork</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-javadoc-plugin</artifactId>
77+
<version>3.10.0</version>
78+
<executions>
79+
<execution>
80+
<id>attach-javadocs</id>
81+
<goals>
82+
<goal>jar</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-gpg-plugin</artifactId>
90+
<version>3.2.6</version>
91+
<executions>
92+
<execution>
93+
<id>sign-artifacts</id>
94+
<phase>verify</phase>
95+
<goals>
96+
<goal>sign</goal>
97+
</goals>
98+
<configuration>
99+
<gpgArguments>
100+
<arg>--pinentry-mode</arg>
101+
<arg>loopback</arg>
102+
</gpgArguments>
103+
</configuration>
104+
</execution>
105+
</executions>
106+
</plugin>
107+
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-deploy-plugin</artifactId>
111+
<configuration>
112+
<skip>true</skip>
113+
</configuration>
114+
</plugin>
115+
<plugin>
116+
<groupId>org.sonatype.plugins</groupId>
117+
<artifactId>nexus-staging-maven-plugin</artifactId>
118+
<executions>
119+
<execution>
120+
<id>deploy-to-sonatype</id>
121+
<phase>deploy</phase>
122+
<goals>
123+
<goal>deploy</goal>
124+
<goal>release</goal>
125+
</goals>
126+
</execution>
127+
</executions>
128+
<configuration>
129+
<serverId>oss.sonatype.org</serverId>
130+
<nexusUrl>https://oss.sonatype.org</nexusUrl>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
</profile>
136+
</profiles>
55137
<build>
138+
<defaultGoal>deploy</defaultGoal>
139+
<finalName>${project.artifactId}-${project.version}</finalName>
140+
56141
<plugins>
57142
<plugin>
58143
<groupId>org.apache.maven.plugins</groupId>
59144
<artifactId>maven-compiler-plugin</artifactId>
60-
<version>3.11.0</version>
145+
<version>3.13.0</version>
61146
<configuration>
62147
<source>1.8</source>
63148
<target>1.8</target>
64149
</configuration>
65150
</plugin>
66151

67152
<plugin>
68-
<groupId>org.apache.felix</groupId>
69-
<artifactId>maven-bundle-plugin</artifactId>
70-
<extensions>true</extensions>
71-
<version>5.1.9</version>
153+
<groupId>org.apache.maven.plugins</groupId>
154+
<artifactId>maven-jar-plugin</artifactId>
155+
<version>3.4.2</version>
72156
<configuration>
73-
<instructions>
74-
<Export-Package>*</Export-Package>
75-
</instructions>
157+
<archive>
158+
<manifest>
159+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
160+
</manifest>
161+
<manifestEntries>
162+
<Build-Time>${maven.build.timestamp}</Build-Time>
163+
<Automatic-Module-Name>com.pivovarit.function</Automatic-Module-Name>
164+
</manifestEntries>
165+
</archive>
76166
</configuration>
77167
</plugin>
78168

79169
<plugin>
80170
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-resources-plugin</artifactId>
172+
<version>3.3.1</version>
173+
<configuration>
174+
<encoding>UTF-8</encoding>
175+
</configuration>
176+
</plugin>
177+
178+
<plugin>
81179
<artifactId>maven-surefire-plugin</artifactId>
82180
<version>3.5.0</version>
83181
</plugin>
182+
183+
<plugin>
184+
<groupId>org.apache.felix</groupId>
185+
<artifactId>maven-bundle-plugin</artifactId>
186+
<version>5.1.9</version>
187+
<extensions>true</extensions>
188+
</plugin>
189+
84190
</plugins>
85191
</build>
86192

@@ -122,4 +228,15 @@
122228
<scope>test</scope>
123229
</dependency>
124230
</dependencies>
231+
232+
<distributionManagement>
233+
<repository>
234+
<id>sonatype-nexus-staging</id>
235+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
236+
</repository>
237+
<snapshotRepository>
238+
<id>sonatype-nexus-snapshots</id>
239+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
240+
</snapshotRepository>
241+
</distributionManagement>
125242
</project>

0 commit comments

Comments
 (0)