Fork me on GitHub
#boot
<
2018-05-15
>
ska09:05:34

OK, different question: is there any documentation about how to work on a boot extension? Do you just create a namespace in your project and work there? Or would you draft everything in build.boot and then move the code somewhere else?

martinklepsch14:05:51

@ska I often start in build.boot and then move elsewhere

martinklepsch14:05:52

@ska regarding the license thing: I’m not aware of a boot task for this but you can either a) write one b) generate a project.clj and use lein-licenses

ska16:05:07

@martinklepsch I already tried variant b which kinda works. I also generated a pom and used the maven report stuff (just run "mvn site") which is massive. I am actually considering writing one myself. I need some time to figure out how to write boot tasks, though.

martinklepsch16:05:10

@ska you could start with something plain clojure that takes a list of deps and returns their license metadata wrapping that in a boot task later will be easy 🙂

ska16:05:13

Just set up a fresh project and learning from your boot-deps project 🙂

ska16:05:39

I'll try to spend a few evenings on this. Let's see where it takes me.

ska16:05:16

Will also study the lein-licenses plugin, maybe the Gradle licenses plugin. Would be awesome to also the the CLJS and JS deps covered.

ska16:05:30

I'll also probably need some manual override or so.

ska16:05:37

Just thinking loudly here

jjmojojjmojo16:05:31

@ska I’m interested in this too, keep us in the loop as you progress

martinklepsch16:05:06

@ska have fun & feel free to ask anything 🙂

jjmojojjmojo17:05:31

sanity check - I’m working updating some old boot tutorials, and I’m using LATEST in my dependencies in some examples - I did it for reasons I can’t remember, and I usually advocate that people always pin versions - is it beneficial to even tell people that’s a thing?

bocaj17:05:34

(boot (show :verify-deps true))
gives me
:bad-sig
for all deps except
:unsigned
cider nrepl and refactor-nrepl. How does one correct signatures?

alandipert18:05:07

hey @jjmojojjmojo! nice to see you no here, been too long. i agree re: LATEST, pinning version superior

jjmojojjmojo18:05:58

thanks, I just needed to hear someone else say it lol 😄

ska19:05:26

Too bad, pod/pom-xml-map only extracts a subset and skips the license part.

alandipert19:05:32

@ska pomegranate seems like the thing you want to use, boot notwithstanding. to get data to work with that is

ska19:05:08

Yeah, I'm wading in pomegranate, boot.aether, boot.pod, lein-licenses and some more. This will take a few days, but just a few minutes ago I got this seq from a test fn: (() nil ("Eclipse Public License") ("Eclipse Public License 1.0") ("Eclipse Public License 1.0") ("Eclipse Public License") ("Eclipse Public License 1.0")) (first strategy: license tag in POM) I guess, that's some progress.

bocaj19:05:06

I'm working on this error

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

bocaj19:05:21

While running

java -jar my-uberjar.jar

bocaj20:05:24

The solution is to delete manifest's .RSA`` file. I'm hunting to learn how to properly sign my uber jar now