Fork me on GitHub
#boot
<
2017-11-20
>
richiardiandrea00:11:10

@flyboarder I see there is a :managed key in the source but 1.6.0 does not recognize it...is everything been release? Is there a SNAPSHOT I need to use?

flyboarder01:11:00

It’s used in the node-modules call

richiardiandrea01:11:35

oh thanks yeah I see that it can be useful, it's just that I cannot use it in 1.6.0

flyboarder01:11:00

try just using the node-modules task, that is a new feature

richiardiandrea01:11:13

npm: unknown option(s): :managed

richiardiandrea01:11:34

using: (npm/npm :install {:less "latest"} :managed true :cache-key :ar-website/cache)

richiardiandrea02:11:44

got everything almost working, only the icons are not showing up for no reason 😠

richiardiandrea02:11:04

I see the path on the classpath/fileset is correct

donaldball16:11:03

Good morning, boot friends. I was asleep during the years in which Java introduced this funk l’il service loader convention for lightweight dependency injection: https://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html I’m considering using it to configure logback. Does boot provide us with any helper fns to facilitate its use?

borkdude16:11:30

@donaldball Not sure if this belongs to the area of build tooling? For dependency injection people usually use something like Component

borkdude16:11:18

Oh I see, that is something like dynamically loading certain jars

donaldball16:11:53

I certainly prefer that for application level dependency stuff but for system properties like e.g. logging or metrics, it seems like maybe it has some utility. Particularly over e.g. static logback.xml files and the like.

danielcompton20:11:26

@donaldball what's the use case for using service loader for configuring logging? I typically just build my uberjar with a different logback file to my dev ones (and use logback-test for dev) which has always been enough for me

danielcompton20:11:55

Not saying there couldn't be more exotic requirements, just that I haven't encountered them

donaldball20:11:57

Mostly that the logback.xml file is annoying but also I just hadn’t encountered this technique before and was curious if anyone ever used it

donaldball20:11:25

I’ve since discovered though that unilog configures logback nicely and I’mma use that