Skip to content

Commit 16d4022

Browse files
committed
[master] Added the JRelease dependency (not tested)
1 parent 789bd95 commit 16d4022

File tree

1 file changed

+66
-52
lines changed

1 file changed

+66
-52
lines changed

pom.xml

Lines changed: 66 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.assertj</groupId>
99
<artifactId>assertj-parent-pom</artifactId>
10-
<version>2.2.17</version>
10+
<version>2.2.18</version>
1111
</parent>
1212

1313
<groupId>in.rcard</groupId>
@@ -25,6 +25,7 @@
2525
</license>
2626
</licenses>
2727
<properties>
28+
<java.version>11</java.version>
2829
<assertj-core.version>3.24.2</assertj-core.version>
2930
<kotlin-stdlib.version>1.9.10</kotlin-stdlib.version>
3031
<arrow-core.version>1.2.1</arrow-core.version>
@@ -139,61 +140,74 @@
139140
</configuration>
140141
</plugin>
141142

142-
<plugin>
143-
<groupId>org.apache.maven.plugins</groupId>
144-
<artifactId>maven-javadoc-plugin</artifactId>
145-
<configuration>
146-
<source>8</source>
147-
</configuration>
148-
<executions>
149-
<execution>
150-
<id>attach-javadocs</id>
151-
<goals>
152-
<goal>jar</goal>
153-
</goals>
154-
</execution>
155-
</executions>
156-
</plugin>
157-
158143
<plugin>
159144
<groupId>org.apache.maven.plugins</groupId>
160145
<artifactId>maven-surefire-plugin</artifactId>
161146
</plugin>
162-
163-
<!-- <plugin>-->
164-
<!-- <groupId>org.jacoco</groupId>-->
165-
<!-- <artifactId>jacoco-maven-plugin</artifactId>-->
166-
<!-- <executions>-->
167-
<!-- <execution>-->
168-
<!-- <id>jacoco-report</id>-->
169-
<!-- <phase>prepare-package</phase>-->
170-
<!-- <goals>-->
171-
<!-- <goal>report</goal>-->
172-
<!-- </goals>-->
173-
<!-- </execution>-->
174-
<!-- <execution>-->
175-
<!-- <id>default-check</id>-->
176-
<!-- <phase>prepare-package</phase>-->
177-
<!-- <goals>-->
178-
<!-- <goal>check</goal>-->
179-
<!-- </goals>-->
180-
<!-- <configuration>-->
181-
<!-- <rules>-->
182-
<!-- <rule implementation="org.jacoco.maven.RuleConfiguration">-->
183-
<!-- <element>BUNDLE</element>-->
184-
<!-- <limits>-->
185-
<!-- <limit implementation="org.jacoco.report.check.Limit">-->
186-
<!-- <counter>CLASS</counter>-->
187-
<!-- <value>COVEREDRATIO</value>-->
188-
<!-- <minimum>0.98</minimum>-->
189-
<!-- </limit>-->
190-
<!-- </limits>-->
191-
<!-- </rule>-->
192-
<!-- </rules>-->
193-
<!-- </configuration>-->
194-
<!-- </execution>-->
195-
<!-- </executions>-->
196-
<!-- </plugin>-->
197147
</plugins>
198148
</build>
149+
<profiles>
150+
<profile>
151+
<id>release</id>
152+
<properties>
153+
<altDeploymentRepository>local::file:./target/staging-deploy</altDeploymentRepository>
154+
</properties>
155+
<build>
156+
<plugins>
157+
<plugin>
158+
<groupId>org.jetbrains.dokka</groupId>
159+
<artifactId>dokka-maven-plugin</artifactId>
160+
<version>${kotlin-stdlib.version}</version>
161+
<executions>
162+
<execution>
163+
<phase>install</phase>
164+
<goals>
165+
<goal>javadocJar</goal>
166+
</goals>
167+
</execution>
168+
</executions>
169+
</plugin>
170+
<plugin>
171+
<groupId>org.apache.maven.plugins</groupId>
172+
<artifactId>maven-source-plugin</artifactId>
173+
<version>3.2.1</version>
174+
<executions>
175+
<execution>
176+
<id>attach-source</id>
177+
<goals>
178+
<goal>jar</goal>
179+
</goals>
180+
</execution>
181+
</executions>
182+
</plugin>
183+
<plugin>
184+
<groupId>org.jreleaser</groupId>
185+
<artifactId>jreleaser-maven-plugin</artifactId>
186+
<version>1.5.1</version>
187+
<configuration>
188+
<jreleaser>
189+
<signing>
190+
<active>ALWAYS</active>
191+
<armored>true</armored>
192+
</signing>
193+
<deploy>
194+
<maven>
195+
<nexus2>
196+
<maven-central>
197+
<active>ALWAYS</active>
198+
<url>https://s01.oss.sonatype.org/service/local</url>;
199+
<closeRepository>false</closeRepository>
200+
<releaseRepository>false</releaseRepository>
201+
<stagingRepositories>target/staging-deploy</stagingRepositories>
202+
</maven-central>
203+
</nexus2>
204+
</maven>
205+
</deploy>
206+
</jreleaser>
207+
</configuration>
208+
</plugin>
209+
</plugins>
210+
</build>
211+
</profile>
212+
</profiles>
199213
</project>

0 commit comments

Comments
 (0)