|
221 | 221 | </build> |
222 | 222 |
|
223 | 223 | <profiles> |
| 224 | + <profile> |
| 225 | + |
| 226 | + <id>snapshot</id> |
| 227 | + |
| 228 | + <distributionManagement> |
| 229 | + <repository> |
| 230 | + <id>spring-libs-snapshot</id> |
| 231 | + <name>Spring Snapshot Repository</name> |
| 232 | + <url>https://repo.spring.io/libs-snapshot-local</url> |
| 233 | + </repository> |
| 234 | + </distributionManagement> |
| 235 | + |
| 236 | + </profile> |
| 237 | + |
224 | 238 | <profile> |
225 | 239 |
|
226 | 240 | <id>milestone</id> |
227 | 241 |
|
228 | 242 | <distributionManagement> |
229 | 243 | <repository> |
230 | | - <id>repo.spring.io</id> |
| 244 | + <id>spring-libs-milestone</id> |
231 | 245 | <name>Spring Milestone Repository</name> |
232 | 246 | <url>https://repo.spring.io/libs-milestone-local</url> |
233 | 247 | </repository> |
|
283 | 297 | </build> |
284 | 298 |
|
285 | 299 | </profile> |
| 300 | + |
| 301 | + <profile> |
| 302 | + |
| 303 | + <id>artifactory</id> |
| 304 | + |
| 305 | + <build> |
| 306 | + |
| 307 | + <pluginManagement> |
| 308 | + <plugins> |
| 309 | + |
| 310 | + <!-- Deploy to Artifactory --> |
| 311 | + |
| 312 | + <plugin> |
| 313 | + <groupId>org.jfrog.buildinfo</groupId> |
| 314 | + <artifactId>artifactory-maven-plugin</artifactId> |
| 315 | + <version>3.4.0</version> |
| 316 | + <executions> |
| 317 | + <execution> |
| 318 | + <id>build-info</id> |
| 319 | + <goals> |
| 320 | + <goal>publish</goal> |
| 321 | + </goals> |
| 322 | + <configuration> |
| 323 | + <artifactory> |
| 324 | + <includeEnvVars>false</includeEnvVars> |
| 325 | + </artifactory> |
| 326 | + <publisher> |
| 327 | + <contextUrl>{{artifactory.server}}</contextUrl> |
| 328 | + <username>{{artifactory.username}}</username> |
| 329 | + <password>{{artifactory.password}}</password> |
| 330 | + <repoKey>{{artifactory.staging-repository}}</repoKey> |
| 331 | + <snapshotRepoKey>{{artifactory.staging-repository}}</snapshotRepoKey> |
| 332 | + </publisher> |
| 333 | + <buildInfo> |
| 334 | + <buildName>{{artifactory.build-name}}</buildName> |
| 335 | + <buildNumber>{{artifactory.build-number}}</buildNumber> |
| 336 | + <buildUrl>{{BUILD_URL}}</buildUrl> |
| 337 | + </buildInfo> |
| 338 | + </configuration> |
| 339 | + </execution> |
| 340 | + </executions> |
| 341 | + </plugin> |
| 342 | + |
| 343 | + </plugins> |
| 344 | + </pluginManagement> |
| 345 | + |
| 346 | + <plugins> |
| 347 | + |
| 348 | + <plugin> |
| 349 | + <groupId>org.jfrog.buildinfo</groupId> |
| 350 | + <artifactId>artifactory-maven-plugin</artifactId> |
| 351 | + </plugin> |
| 352 | + |
| 353 | + </plugins> |
| 354 | + |
| 355 | + </build> |
| 356 | + </profile> |
| 357 | + <profile> |
| 358 | + <id>release</id> |
| 359 | + <build> |
| 360 | + <plugins> |
| 361 | + <plugin> |
| 362 | + <groupId>org.apache.maven.plugins</groupId> |
| 363 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 364 | + <version>3.1.0</version> |
| 365 | + <executions> |
| 366 | + <execution> |
| 367 | + <id>enforce-no-third-party-snapshots</id> |
| 368 | + <goals> |
| 369 | + <goal>enforce</goal> |
| 370 | + </goals> |
| 371 | + <configuration> |
| 372 | + <rules> |
| 373 | + <requireReleaseDeps /> |
| 374 | + <NoSnapshotDependenciesInDependencyManagementRule implementation="de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule"> |
| 375 | + <onlyWhenRelease>true</onlyWhenRelease> |
| 376 | + </NoSnapshotDependenciesInDependencyManagementRule> |
| 377 | + </rules> |
| 378 | + </configuration> |
| 379 | + </execution> |
| 380 | + </executions> |
| 381 | + <dependencies> |
| 382 | + <dependency> |
| 383 | + <groupId>de.smartics.rules</groupId> |
| 384 | + <artifactId>smartics-enforcer-rules</artifactId> |
| 385 | + <version>1.0.2</version> |
| 386 | + </dependency> |
| 387 | + </dependencies> |
| 388 | + </plugin> |
| 389 | + </plugins> |
| 390 | + </build> |
| 391 | + </profile> |
286 | 392 | </profiles> |
287 | 393 |
|
288 | 394 | </project> |
0 commit comments