sormuras / bach

🎼 Bach Builds (on(ly)) Modules
https://bach.run
Universal Permissive License v1.0
234 stars 51 forks source link

Add Jackson module lookup support #226

Closed sormuras closed 3 years ago

sormuras commented 3 years ago

From: https://github.com/michael-simons/bikingFX/blob/c066ecc73e72bc68b595358f5af85dc986b897a7/.bach/bach.info/module-info.java#L55-L59

@External(module = "com.fasterxml.jackson.annotation", via = "com.fasterxml.jackson.core:jackson-annotations:2.12.2"),
@External(module = "com.fasterxml.jackson.core", via = "com.fasterxml.jackson.core:jackson-core:2.12.2"),
@External(module = "com.fasterxml.jackson.databind", via = "com.fasterxml.jackson.core:jackson-databind:2.12.2"),
// ...

to:

lookupExternals = {
  @Externals(name = JACKSON, version = "2.12.2")
}
sormuras commented 3 years ago

https://github.com/sormuras/modules/blob/6b0bcd688d762bee9f8b5275bf4dc8d42ff3db38/com.github.sormuras.modules/com/github/sormuras/modules/modules.properties#L375-L414

sormuras commented 3 years ago

Done via https://github.com/sormuras/bach/blob/main/com.github.sormuras.bach/main/java/com/github/sormuras/bach/external/Jackson.java