Re: [sbt] how to get internal project dependency jar path in SBT

88 views
Skip to first unread message

Jesse C

unread,
Oct 11, 2012, 10:14:45 AM10/11/12
to simple-b...@googlegroups.com
You can access those jars using the respective package-bin key of each project.

something like

packageBin in projectB

On Thu, Oct 4, 2012 at 10:01 AM, Serhii Nesteruk <serhii....@gmail.com> wrote:

Hi,

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)

l
azy 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

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/tjcf-XTwLLkJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Reply all
Reply to author
Forward
0 new messages