austinarbor/version-catalog-generator

Better Alias Generation (Part 2)

austinarbor opened this issue · 0 comments

Improve alias generation for spring libraries -

In library aliases and bundle names, prefer - as a separator instead of .

In addition, make the below changes for better alias generation for spring libraries:

  • If group has the prefix org.springframework, set prefix to spring
    • If name subsequently has spring- as a prefix, replace this with the empty string
    • For example:
      • org.springframework.boot:spring-boot-starter-web:x.y.z -> spring-boot-starter-web
      • org.springframework:spring-web:x.y.z -> spring-web
      • org.springframework.hateoas:spring-hateoas:x.y.z -> spring-hateoas