Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Johannes Rudolph
    @jrudolph
    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 :)
    Johannes Rudolph
    @jrudolph
    cool, great :)
    Leo
    @leobenkel
    Hello, I am trying to implement a SBT plugin similar to yours in the basic skeleton but for different purpose. However, this is my first plugin and I do not understand how to make all the versions be happy with each other. Anyone of you experts could help me get started ?
    Leo
    @leobenkel
    Hello, I was wondering how do you get the dependencies pulled by a ModuleId I looked at the code but I don't quite understand where it is coming from
    Dale Wijnand
    @dwijnand
    @leobenkel the result type of sbt's update task contains an update report where you can look that up
    Leo
    @leobenkel
    @dwijnand , So I would do something like:
    myTask := {
       Keys.update.value.[what should I call here?]
    }
    I saw Keys.update.value.allModules but I dont see any notion of dependencies. When I try : Keys.update.value.allModules.map(_.[cant find anything here ] )
    Leo
    @leobenkel
    @dwijnand thank you
    Johannes Rudolph
    @jrudolph
    Hi @Leo, in sbt-dependency-graph the code to extract modules into a graph structure is in SbtUpdateReport. See https://github.com/jrudolph/sbt-dependency-graph/blob/master/src/main/scala/net/virtualvoid/sbt/graph/backend/SbtUpdateReport.scala
    Leo
    @leobenkel
    An article I wrote on how to make Sbt Plugins: https://leobenkel.com/2018/11/make-sbt-plugin/ thanks for all your help understanding what was going on !
    Dale Wijnand
    @dwijnand
    nice one!
    Leo
    @leobenkel
    Thanks!
    Johannes Rudolph
    @jrudolph
    Quite a comprehensive article! And thanks for the shoutout, @leobenkel :)
    Leo
    @leobenkel
    @jrudolph Thanks for all your help !
    Dario Abdulrehman
    @dabd
    Hi, I'd like to create a graph of dependencies for multiple repos (within an organisation), by merging multiple graphs. From time to time we need to test library upgrades in the organisation and it would be nice to analyse dependencies as a whole. Is there a clever way to create a multiproject build just for the purpose of using sbt-dependency-graph's tasks, or is there another way? I could also attempt to run sbt-dependency-graph on each repo to output each graph in .dot format and use some tool to merge the graphs.
    Johannes Rudolph
    @jrudolph
    @dabd maybe it would suffice if you'd create one meta-project that depended on all your organizations modules? What information do you want to get out of it?
    Leo
    @leobenkel
    Can't you save it as a ...what's the extension... Dot ? The format where you have node1 -> node2 in the file ? You could then run it on all your project and concatenate the output.
    Dario Abdulrehman
    @dabd
    @jrudolph I want to quickly check across the organization which repos depend on a given module, possibly a transitive dependency. The organization has hundreds of repos.
    tahirzaman
    @tahirzaman
    Is there a way to get the dependency tree of a fat/assembly jar? From what I can tell, dependencyTree/whatDependsOn include dependencies marked as provided
    i.e., it doesn't seem to differentiate between provided scope and compile scope
    Daniel Gordon
    @DanielGGordon
    I get something like this when I try to run dependencyBrowseGraph or the html version:
    [error] (compile:dependencyBrowseGraphHtml) java.util.NoSuchElementException: key not found: ModuleId(org.scala-sbt.temp,temp-resolve-33d2b8e
    0f7e2569e5b115d8b93e89fdd470dea73,1.0)
    Manu Zhang
    @manuzhang
    @DanielGGordon Could you provide versions of sbt-dependency-graph and sbt ?
    Daniel Gordon
    @DanielGGordon
    @manuzhang it was 0.9.2. I downgraded to 0.8.2 and did not face this issue again.
    Manu Zhang
    @manuzhang
    @DanielGGordon Mine is 0.9.0 and it runs fines. What's your SBT version then ?
    Jakub Kozłowski
    @kubukoz
    Hi, just wanted to confirm: the plugin works across all sbt 1.x versions, not only 1.0.x, right? 1.0.x is mentioned in the readme but AFAIK it should work with newer releases as well.
    John Sweet
    @john-sweet-ck
    Hi - we've been hitting Java OOM trying to generate dependency trees for several of our repos. I don't see that issue listed in https://github.com/jrudolph/sbt-dependency-graph/issues - are we the only ones?
    Oliver Hechtl
    @ohechtl
    Hi, I've created a minor PR which sets the dependencyBrowseGraph 's output display width to dynamic instead of the fixed 1024.
    Can you take a look please?
    jrudolph/sbt-dependency-graph#180