Riduidel / aadarchi

A maven archetype to generate easily projects allowing architecture description using a mix of C4, agile architecture, Asciidoc and PlantUML
https://riduidel.github.io/aadarchi/
Apache License 2.0
39 stars 12 forks source link

Upgrade programming language detection #375

Closed Riduidel closed 10 months ago

Riduidel commented 10 months ago
          Okay ... it seems like hard injection of language was a mistake.

Indeed, to inject Java language, I first checked if some dependnecies were present and used that as an indicator of Java usage. But it fails miserably when no dependency is important enough. The method I will now use will be significantly harder.

  1. Detect if some language runtime is detected in dependencies (by checking if dependency has the "language" tag)
  2. If none is found, add a fake Java dependency (with the version) and link it to a fake mvnrepository artifact -the artifact will be created by https://github.com/Riduidel/aadarchi-technology-detector/issues/5

Originally posted by @Riduidel in https://github.com/Riduidel/aadarchi/issues/373#issuecomment-1689438435

Riduidel commented 10 months ago

In fact, it's not even the best way. Currently, I think that the best way is to explore pom hierarchy looking for nearest compiler configuration. This will give us the used Java version

Riduidel commented 10 months ago

In fact, we won't implement that for now