sbt/sbt-export-repo

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

Homepage:

Size: 42

Language: Scala

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

sbt-export-repo

sbt-export-repo exports your dependency graph to a preloaded local repository.

This is an experimental plugin provided as-is.

setup

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 := ()

usage
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).

credits
license

Apache-2.0


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.