maveniverse / mima

Minimal Maven reusable one-stop shop library
Eclipse Public License 2.0
28 stars 2 forks source link

add libyear support ? #118

Closed maxandersen closed 4 months ago

maxandersen commented 4 months ago

https://libyear.com/ has explanation and links to maven/gradle implementations but feels like a natural fit for mima3 :)

something like:

$ mima3 libyear my.fav.dep:artifact:2.11.3
23 years (2.3 decades  libyears from 33 dependencies)

$ mima3 libyear --verbose my.fav.dep:artifact:2.11.3 23 years 2.3 decades libyears from 33 dependencies: -> 4.2 years from jakarta.annotation:jakarta.annotation-api (1.3.5 => 3.0.0-M1) -> 1.9 years from org.slf4j:jul-to-slf4j (1.7.36 => 2.1.0-alpha0) -> 1.9 years from org.slf4j:slf4j-api (1.7.36 => 2.1.0-alpha0) -> 1.8 years from org.apache.logging.log4j:log4j-api (2.17.2 => 3.0.0-beta1) -> 1.8 years from org.apache.logging.log4j:log4j-to-slf4j (2.17.2 => 3.0.0-beta1) -> 1.7 years from org.yaml:snakeyaml (1.30 => 2.2) -> 11 months from com.fasterxml.jackson.module:jackson-module-parameter-names (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson.datatype:jackson-datatype-jdk8 (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson.datatype:jackson-datatype-jsr310 (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson.core:jackson-annotations (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson:jackson-bom (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson.core:jackson-core (2.13.5 => 2.16.1) -> 11 months from com.fasterxml.jackson.core:jackson-databind (2.13.5 => 2.16.1) -> 8.3 months from ch.qos.logback:logback-core (1.2.12 => 1.4.14) -> 8.3 months from ch.qos.logback:logback-classic (1.2.12 => 1.4.14) -> 28.2 days from org.springframework.boot:spring-boot-starter-tomcat (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot-starter-web (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot-starter (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot-starter-json (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot-starter-logging (2.7.18 => 3.2.1) -> 28.2 days from org.springframework.boot:spring-boot-autoconfigure (2.7.18 => 3.2.1) -> 28.1 days from org.springframework:spring-aop (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-context (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-core (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-expression (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-web (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-webmvc (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-jcl (5.3.31 => 6.1.2) -> 28.1 days from org.springframework:spring-beans (5.3.31 => 6.1.2) -> 27.7 days from org.apache.tomcat.embed:tomcat-embed-websocket (9.0.83 => 11.0.0-M15) -> 27.7 days from org.apache.tomcat.embed:tomcat-embed-el (9.0.83 => 11.0.0-M15) -> 27.7 days from org.apache.tomcat.embed:tomcat-embed-core (9.0.83 => 11.0.0-M15)


or maybe make that the default and have:

$ mima3 libyear --quiet my.fav.dep:artifact:2.11.3 230

cstamas commented 4 months ago

See here https://github.com/maveniverse/toolbox/pull/33

Note; MIMA CLI is being phased out, and to be replaced with Toolbox (that is reusable library, CLI and Mojo all in one).

cstamas commented 4 months ago

See https://gist.github.com/cstamas/35c66f105e69bf89e7e2aabe8ccf66f9