Closed StrongestNumber9 closed 1 month ago
There are bunch of other useful rules in https://maven.apache.org/enforcer/enforcer-rules/index.html that could be implemented to enforce good standards, like
For obvious reasons: banDynamicVersions - bans all dependencies requiring version resolution at build time (i.e. version ranges, placeholders RELEASE/LATEST or SNAPSHOT versions).
Also for obivous reasons: requirePluginVersions - enforces that all plugins have a specified version.
Security, code management requireNoRepositories - enforces to not include repositories.
For example LICENSE, .gitignore, license-header to enforce that some specific stuff exists requireFilesExist - enforces that the list of files does exist.
We don't want to use anything except release versions requireReleaseDeps - enforces that no snapshots are included as dependencies.
Description
https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
Use case or motivation behind the feature request
Will actually FORCE java version, not just compile on it. Better fail hard and with appropriate error message than have mystery failures because JAVA_HOME was pointing to incompatible version