Skip to content

Commit 4f3f36d

Browse files
authored
Merge pull request #2 from bennu/pom-fix
fix: add variables to pom profile
2 parents 766fa44 + b6fc973 commit 4f3f36d

File tree

1 file changed

+138
-2
lines changed

1 file changed

+138
-2
lines changed

pom.xml

+138-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>cl.bennu</groupId>
99
<artifactId>mybatis-commons</artifactId>
10-
<version>0.0.1</version>
10+
<version>0.0.2</version>
1111
<name>bennu-mybatis-commons</name>
1212
<description>Utilitarios bennu para MyBatis</description>
1313
<url>https://github.com/bennu/mybatis-commons</url>
@@ -57,4 +57,140 @@
5757
</dependency>
5858
</dependencies>
5959

60-
</project>
60+
<profiles>
61+
<profile>
62+
<!-- required, used in .github/workflows/sonatype-publish.yml -->
63+
<id>sonatypeDeploy</id>
64+
<build>
65+
<plugins>
66+
<plugin>
67+
<groupId>org.sonatype.central</groupId>
68+
<artifactId>central-publishing-maven-plugin</artifactId>
69+
<version>0.3.0</version>
70+
<extensions>true</extensions>
71+
<configuration>
72+
<publishingServerId>central</publishingServerId>
73+
<tokenAuth>true</tokenAuth>
74+
<autoPublish>true</autoPublish>
75+
<waitUntil>published</waitUntil>
76+
</configuration>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-source-plugin</artifactId>
81+
<version>3.3.0</version>
82+
<executions>
83+
<execution>
84+
<id>attach-sources</id>
85+
<goals>
86+
<goal>jar-no-fork</goal>
87+
</goals>
88+
</execution>
89+
</executions>
90+
</plugin>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-javadoc-plugin</artifactId>
94+
<version>3.6.3</version>
95+
<executions>
96+
<execution>
97+
<id>attach-javadocs</id>
98+
<goals>
99+
<goal>jar</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-gpg-plugin</artifactId>
107+
<version>3.1.0</version>
108+
<executions>
109+
<execution>
110+
<id>sign-artifacts</id>
111+
<phase>verify</phase>
112+
<goals>
113+
<goal>sign</goal>
114+
</goals>
115+
<configuration>
116+
<gpgArguments>
117+
<arg>--pinentry-mode</arg>
118+
<arg>loopback</arg>
119+
</gpgArguments>
120+
</configuration>
121+
</execution>
122+
</executions>
123+
</plugin>
124+
</plugins>
125+
</build>
126+
</profile>
127+
<profile>
128+
<!-- optional: used in .github/workflows/build-and-analyze.yml -->
129+
<id>coverageReport</id>
130+
<build>
131+
<plugins>
132+
<plugin>
133+
<artifactId>maven-surefire-plugin</artifactId>
134+
<version>3.2.5</version>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.jacoco</groupId>
138+
<artifactId>jacoco-maven-plugin</artifactId>
139+
<version>0.8.7</version>
140+
<executions>
141+
<execution>
142+
<id>prepare-agent</id>
143+
<goals>
144+
<goal>prepare-agent</goal>
145+
</goals>
146+
</execution>
147+
<execution>
148+
<id>report</id>
149+
<goals>
150+
<goal>report</goal>
151+
</goals>
152+
<configuration>
153+
<formats>
154+
<format>XML</format>
155+
</formats>
156+
</configuration>
157+
</execution>
158+
</executions>
159+
</plugin>
160+
</plugins>
161+
</build>
162+
</profile>
163+
</profiles>
164+
165+
<build>
166+
<plugins>
167+
<plugin>
168+
<groupId>org.apache.maven.plugins</groupId>
169+
<artifactId>maven-javadoc-plugin</artifactId>
170+
<version>3.10.1</version> <!-- Check for latest version at Maven Central -->
171+
<executions>
172+
<execution>
173+
<id>attach-javadocs</id>
174+
<goals>
175+
<goal>jar</goal>
176+
</goals>
177+
</execution>
178+
</executions>
179+
</plugin>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-source-plugin</artifactId>
183+
<version>3.3.1</version> <!-- Check for latest version at Maven Central -->
184+
<executions>
185+
<execution>
186+
<id>attach-sources</id>
187+
<goals>
188+
<goal>jar-no-fork</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
</plugins>
194+
</build>
195+
196+
</project>

0 commit comments

Comments
 (0)