-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
None
Add some degree of automatic detection for module versions. Versions could be checked in this order:
- For each resource root:
- If it's an artifact, the version is the artifact version
- If it's a local root (JAR or directory), the version is searched for:
- In the module-info.class file
- In the META-INF/maven/org.jboss.modules/jboss-modules/pom.properties version property
- In the META-INF/MANIFEST.MF top-level Implementation-Version entry
- If all versions are equal, that's the version
- If not all versions agree but one resource root is marked as the "auto-version" resource root, use that version
- If not all versions agree, no version is specified (log a warning?)