Skip to content

Commit 482dfe4

Browse files
mchmielarzpivovarit
authored andcommitted
Plugins required to deploy artifacts added (#17)
* Plugins required to deploy artifacts added Fixes #8 * Target folder added to gitignore * Javadoc updates (#16) Fixes #14
1 parent 05ca4f9 commit 482dfe4

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@
2222
hs_err_pid*
2323
.idea/
2424
*.iml
25+
26+
/target

pom.xml

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
<name>AssertJ fluent assertions for Vavr</name>
1212
<description>Rich and fluent assertions for testing Vavr tools</description>
1313
<inceptionYear>2017</inceptionYear>
14+
15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
1421

1522
<scm>
1623
<developerConnection>scm:git:[email protected]:assertj/assertj-vavr.git</developerConnection>
@@ -24,6 +31,17 @@
2431
<url>https://github.com/assertj/assertj-vavr/issues</url>
2532
</issueManagement>
2633

34+
<distributionManagement>
35+
<snapshotRepository>
36+
<id>ossrh</id>
37+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
38+
</snapshotRepository>
39+
<repository>
40+
<id>ossrh</id>
41+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42+
</repository>
43+
</distributionManagement>
44+
2745
<dependencies>
2846
<dependency>
2947
<groupId>org.assertj</groupId>
@@ -67,7 +85,66 @@
6785
</execution>
6886
</executions>
6987
</plugin>
70-
<!-- generate jacoco report -->
88+
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-source-plugin</artifactId>
92+
<version>2.4</version>
93+
<executions>
94+
<execution>
95+
<id>attach-sources</id>
96+
<goals>
97+
<goal>jar</goal>
98+
</goals>
99+
</execution>
100+
</executions>
101+
</plugin>
102+
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-gpg-plugin</artifactId>
106+
<executions>
107+
<execution>
108+
<id>sign-artifacts</id>
109+
<phase>verify</phase>
110+
<goals>
111+
<goal>sign</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
117+
<plugin>
118+
<groupId>org.sonatype.plugins</groupId>
119+
<artifactId>nexus-staging-maven-plugin</artifactId>
120+
<version>1.6.8</version>
121+
<extensions>true</extensions>
122+
<configuration>
123+
<serverId>ossrh</serverId>
124+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
125+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
126+
</configuration>
127+
</plugin>
128+
129+
<plugin>
130+
<groupId>org.jacoco</groupId>
131+
<artifactId>jacoco-maven-plugin</artifactId>
132+
<version>0.8.1</version>
133+
<executions>
134+
<execution>
135+
<goals>
136+
<goal>prepare-agent</goal>
137+
</goals>
138+
</execution>
139+
<execution>
140+
<id>report</id>
141+
<phase>test</phase>
142+
<goals>
143+
<goal>report</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
71148
</plugins>
72149
</build>
73150
</project>

0 commit comments

Comments
 (0)