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 8641253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:28:40+00:00 2026-06-12T11:28:40+00:00

I am implementing custom deploy Task in SBT and I need to copy all

  • 0

I am implementing custom deploy Task in SBT and I need to copy all required jars to deployment folder.
I am able to get paths to all external dependencies using update TaskKey. Unfortunately updateReport does not include internal dependencies.
Here is my simple configuration

val deploy = TaskKey[Unit]("deploy","deploy")

lazy val projectA = Project(id=project-a,
settings=Project.defaultSettings)

lazy val projectB = Project(id=project-b,
settings=Project.defaultSettings) dependsOn(projectA)

lazy val projectC = Project(id=project-c,
settings=Project.defaultSettings, ++ Seq(deployTask)) dependsOn(projectB)

val deployTask = deploy <<= (update) map {(updateReport) =>
val externalDependency = updateReport.allFiles //paths to all external dependencies are available here
//project-a.jar and project-b.jar are not here
}

So, the question is how can I obtain absolute path to internal project dependencies i.e. project-a.jar, project-b.jar

  • 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-06-12T11:28:41+00:00Added an answer on June 12, 2026 at 11:28 am

    If you set the exportJars property:

    exportJars := true
    

    then

    exportedProducts in Compile
    

    Should give you the path to the jar file for a project:

    > show export-jars
    [info] true
    > show exported-products
    [info] List(Attributed(/Users/luke/Work/myproject/server/target/scala-2.9.2/server_2.9.2-0.3-SNAPSHOT.jar))
    [success] Total time: 0 s, completed Oct 5, 2012 11:29:51 PM
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a custom control with some labels on it and I need to
I'm implementing a custom BCS Model to get data from a backend system. As
I'm implementing a custom field in Sitecore for the Content Editor, and I need
I have problems implementing a custom DependencyObject: I need a converter which sets or
I'm implementing a custom control and in this control I need to write a
I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap
I am implementing a custom action for a WindowsCE CAB file, and I need
I am implementing a custom MembershipProvider and I am trying to get the ValidateUser
I'm in Drupal 7 and implementing custom script inside Drupal Root folder. Then i'm
I'm looking for some pointers on implementing Custom Events in VB.NET (Visual Studio 2008,

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.