|
22 | 22 | <parent> |
23 | 23 | <groupId>io.aiven.commons</groupId> |
24 | 24 | <artifactId>aiven-commons</artifactId> |
25 | | - <version>3-SNAPSHOT</version> |
| 25 | + <version>3</version> |
26 | 26 | </parent> |
27 | 27 |
|
28 | 28 | <artifactId>kafka-config</artifactId> |
|
273 | 273 | </build> |
274 | 274 | <profiles> |
275 | 275 | <profile> |
276 | | - <id>release</id> |
| 276 | + <id>publish</id> |
277 | 277 | <build> |
278 | 278 | <plugins> |
279 | 279 | <plugin> |
280 | 280 | <groupId>org.sonatype.central</groupId> |
281 | 281 | <artifactId>central-publishing-maven-plugin</artifactId> |
| 282 | + <version>0.9.0</version> |
282 | 283 | <extensions>true</extensions> |
283 | 284 | <configuration> |
284 | | - <publishingServerId>central-snapshot</publishingServerId> |
| 285 | + <publishingServerId>central</publishingServerId> |
285 | 286 | <ignorePublishedComponents>true</ignorePublishedComponents> |
286 | | - <centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots</centralSnapshotsUrl> |
287 | 287 | </configuration> |
288 | 288 | </plugin> |
| 289 | + <plugin> |
| 290 | + <groupId>org.apache.maven.plugins</groupId> |
| 291 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 292 | + <version>3.6.2</version> |
| 293 | + <executions> |
| 294 | + <execution> |
| 295 | + <id>enforce-versions</id> |
| 296 | + <goals> |
| 297 | + <goal>enforce</goal> |
| 298 | + </goals> |
| 299 | + <configuration> |
| 300 | + <rules> |
| 301 | + <requireReleaseDeps> |
| 302 | + <message>No Snapshots Allowed!</message> |
| 303 | + </requireReleaseDeps> |
| 304 | + <requireReleaseVersion> |
| 305 | + <message>No Snapshots Allowed!</message> |
| 306 | + </requireReleaseVersion> |
| 307 | + </rules> |
| 308 | + </configuration> |
| 309 | + </execution> |
| 310 | + </executions> |
| 311 | + </plugin> |
| 312 | + </plugins> |
| 313 | + </build> |
| 314 | + </profile> |
| 315 | + <profile> |
| 316 | + <!-- used to verify that there are no SNAPSHOT dependencies --> |
| 317 | + <id>pre-release-check</id> |
| 318 | + <build> |
| 319 | + <plugins> |
| 320 | + <plugin> |
| 321 | + <groupId>org.apache.maven.plugins</groupId> |
| 322 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 323 | + <version>3.6.2</version> |
| 324 | + <executions> |
| 325 | + <execution> |
| 326 | + <id>enforce-versions</id> |
| 327 | + <goals> |
| 328 | + <goal>enforce</goal> |
| 329 | + </goals> |
| 330 | + <configuration> |
| 331 | + <rules> |
| 332 | + <requireReleaseDeps> |
| 333 | + <message>No Snapshots Allowed!</message> |
| 334 | + </requireReleaseDeps> |
| 335 | + </rules> |
| 336 | + </configuration> |
| 337 | + </execution> |
| 338 | + </executions> |
| 339 | + </plugin> |
289 | 340 | </plugins> |
290 | 341 | </build> |
291 | 342 | </profile> |
|
0 commit comments