Skip to content

Add maven-enforcer-plugin to prevent SNAPSHOT usage in releases - #1056

Merged
frantuma merged 1 commit into
swagger-api:masterfrom
jmini:enforcer-plugin_master
Mar 26, 2019
Merged

frantuma merged 1 commit into
swagger-api:masterfrom
jmini:enforcer-plugin_master

Conversation

@jmini

@jmini jmini commented Mar 26, 2019

Copy link
Copy Markdown
Contributor

To prevent having SNAPSHOT versions in the dependency tree in released versions, I propose to add the maven-enforcer-plugin to the build with the requireReleaseDeps activated for release build.

Because this project is using SNAPSHOT versions during development, I think that using onlyWhenRelease = true is the appropriate setting for this project.

Documentation: https://maven.apache.org/enforcer/enforcer-rules/requireReleaseDeps.html

Related:

@jmini

jmini commented Mar 26, 2019

Copy link
Copy Markdown
Contributor Author

Same change for v1 branch: #1057

@frantuma
frantuma merged commit 239b847 into swagger-api:master Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants