Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Paweł Cejrowski
    @pcejrowski
    Up #136 !
    zebraitis
    @zebraitis
    Can I use this plugin with sbt.version = 1.1.6 & scalaVersion := "2.12.6" ?
    Paweł Cejrowski
    @pcejrowski
    Up #136 !
    Johannes Rudolph
    @jrudolph
    @zebraitis, yes
    sorry @pcejrowski, still got no time to review in depth :( Will try to make sure to include it in the next release
    Paweł Cejrowski
    @pcejrowski
    Thanks, I am pinging about it, because I am resolving conflicts on that branch every 2-3 months to keep it mergeable.
    Paweł Cejrowski
    @pcejrowski
    Thanks for merging @jrudolph!
    Johannes Rudolph
    @jrudolph
    Thanks for the PR ;) And sorry for keeping it in the queue for so long...
    Florian Witteler
    @FloWi
    Hi! Is there a way to get the string output of dependencyLicenseInfo? I tried to pipe it into a textfile, but it's full of escape characters and also the output of sbt.
    ESC[0m[ESC[0mESC[0minfoESC[0m] ESC[0mESC[0mLoading settings from build.sbt ...ESC[0m
    Johannes Rudolph
    @jrudolph
    Hi @FloWi, unfortunately, no not right now
    you can use cat though to get rid of the formatting stuff
    Or maybe even better, run sbt in no-ansi mode by passing the flag -Dsbt.log.noformat=true when starting
    Florian Witteler
    @FloWi
    hmm, seems to be broken: sbt/sbt#3921
    Johannes Rudolph
    @jrudolph
    not sure that ticket is generally valid, I guess it might be depending on how you installed sbt
    Florian Witteler
    @FloWi
    I installed it via homebrew
    Johannes Rudolph
    @jrudolph
    Hmm cannot comment on that, I would try just looking into the script that is opened when you run sbt and see how you can pass JVM options to it
    I'm also just looking into better support for output options in sbt-dependency-graph itself
    Florian Witteler
    @FloWi
    That would be cool. I found another plugin (https://github.com/sbt/sbt-license-report) that generates license reports. But unfortunately it doesn't do that for all subprojects.
    you said I can use cat to get rid of the escape chars. Can you point me in the right direction? I'm not a pro when it comes to bash :)
    oh, nevermid. Got it. Found out how to pass JVM options to sbt
    Johannes Rudolph
    @jrudolph
    ah cool, maybe I was even wrong about cat ;)
    So how did you have to supply the options?
    Florian Witteler
    @FloWi
    haha :) I always get afraid when my colleagues work with cat, sed, trim etc...
    I put it in the SBT_OPTS env var
    Johannes Rudolph
    @jrudolph
    ah good, actually that's also how I would do it, didn't remember...
    Florian Witteler
    @FloWi
    maybe you could make a task that renders the whole output into a string and returns it. It could then be used to write it to a file. sbt still clutters the output with irrelevant stuff.
    Johannes Rudolph
    @jrudolph
    I created jrudolph/sbt-dependency-graph#164 which proposes something similar
    every task would then have a toFile subcommand to safe the output to a file
    Florian Witteler
    @FloWi
    cool. that should do
    Ah, and also an asString subcommand. Perfect!
    Thanks for your help!
    Johannes Rudolph
    @jrudolph
    no problem ;)
    Florian Witteler
    @FloWi

    I have some suggestions:

    • write out the name of the subproject before listing the licenses
    • grouping by the toLowercase version of the license name
      BSD 3-Clause
      vs.
      BSD 3-clause

    I don't know how long it will take to implement the improvement you mentioned above.
    Maybe an easy workaround would be to prepend a grep-able string to the output (e.g. [license-info]) to be able to get rid of the sbt-logspam.

    Johannes Rudolph
    @jrudolph
    write out the name of the subproject before listing the licenses
    actually the plugin doesn't control the subproject listings
    it's sbt aggregation which does it automatically
    but I could probably add a header
    Florian Witteler
    @FloWi
    header would do - I guess you know what subproject you're currently in when the task runs

    I don't know how long it will take to implement the improvement you mentioned above.

    I might get back to this next Friday. If there is nothing urgent I have some time for OSS work. Have a nice weekend!

    Johannes Rudolph
    @jrudolph
    let's see, I'm just working on it a bit ;)
    have a nice weekend as well
    Yuriy Pitomets
    @Pitometsu
    > whatDependsOn ch.qos.logback logback-core 1.2.3
    [error] Expected whitespace character
    [error] Expected 'Photobucket'
    [error] Expected 'ch.megard'
    [error] Expected 'ch.lightshed'
    [error] whatDependsOn ch.qos.logback logback-core 1.2.3
    [error]                  ^
    Johannes Rudolph
    @jrudolph
    maybe it's not found in the compile config?
    try runtime:whatDependsOn or test:whatDependsOn
    Yuriy Pitomets
    @Pitometsu
    thanks. BTW, how can I look at all the transit dependencies?
    Johannes Rudolph
    @jrudolph
    have you already tried dependencyTree and dependencyBrowseGraph?
    Yuriy Pitomets
    @Pitometsu
    Yeah, I see downloaded package above the tree, but not in tree
    anyway that error message looks more like syntax error. If it expected, shouldn't such case be little bit more friendly?
    Johannes Rudolph
    @jrudolph
    yeah maybe, it's a consequence of offering tab completion for whatDependsOn
    Yuriy Pitomets
    @Pitometsu
    oh, thank you for help. test: work for me :)