Name: sbt-export-repo
Owner: sbt
Description: exports your dependency graph to a preloaded local repository
Created: 2016-05-31 23:56:48.0
Updated: 2018-01-17 19:46:18.0
Pushed: 2016-06-01 19:25:12.0
Size: 42
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
sbt-export-repo exports your dependency graph to a preloaded local repository.
This is an experimental plugin provided as-is.
Add the following to project/exportrepo.sbt
:
btPlugin("com.eed3si9n" % "sbt-export-repo" % "0.1.0")
Then, create dist
subproject in build.sbt
:
val root = (project in file(".")).
gregate(app, dist).
ttings(
inThisBuild(List(
scalaVersion := "2.11.8",
organization := "com.example",
version := "0.1.0-SNAPSHOT"
)),
name := "something root",
publish := (),
publishLocal := ()
our normal subproject
val app = (project in file("app"))
his subproject is used for exporting repo only
val dist = (project in file("dist")).
ablePlugins(ExportRepoPlugin).
pendsOn(app). // add your subprojects to export
ttings(
name := "dist",
// add external libraries too. why not?
libraryDependencies += "org.typelevel" %% "cats" % "0.6.0",
publish := (),
publishLocal := ()
blishLocal
st/exportRepo
This will create an Ivy repo image under dist/target/preloaded-local
containing the transitive dependencies of both the internal and external dependencies you added to dist
(e.g. app
and Cats).
Apache-2.0