Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7575235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:38:13+00:00 2026-05-30T16:38:13+00:00

I want to write an sbt plugin, and inside it I need to get

  • 0

I want to write an sbt plugin, and inside it I need to get the list of all dependencies of current project (with some info, is possible). Is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:38:14+00:00Added an answer on May 30, 2026 at 4:38 pm

    In our project we use the update task to get the library dependencies:

    (update) map {
      (updateReport) =>
        updateReport.select(Set("compile", "runtime")) foreach { srcPath => /* do something with it */ }
    }
    

    Hope this helps for a start.

    [EDIT] Here is a simple example how to add this functionality to your task:

    val depsTask = TaskKey[Unit]("find-deps", "finds the dependencies")
    
    val testConf = config("TestTasks") hide
    
    private lazy val testSettings = inConfig(testConf)(Seq(
        depsTask <<= (update) map {
            (updateReport) =>
                updateReport.select(Set("compile", "runtime")) foreach { srcPath => println("src path = " + srcPath) }
        }
    ))
    

    To use the task just add testSettings to your project.

    For more about tasks see the sbt documentation. More information about the update task can be found here.

    [EDIT2] The update task only gets the library dependencies. I never tried out external
    project dependencies (like to a git repository). Maybe you need something like the following: find project artifacts. The task allTheArtifacts finds the artifacts of the project and the artifacts of its project dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want write a small program to get IP Address of some websites by
I want to write a word addin that does some computations and updates some
I want to write some JavaScript that will change the onmousedown of a div
I have sql select for which I want write criteria. I was googling some
I want write a Special Messenger (should be able to some transaction) with RMI(Remote
I want to write a software that unifies logs from different servers, all WebSphere,
I want to write some large amount of data to a file. the data
I want write a query to get the last 24 hours worth of job
I have List (Of Report). Report has 90 properties. I dont want write them
Hello I want write my own desktop sharing application in Java. The application should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.