retronym/sbt-onejar — Issue #5: References to undefined settings
Author: jlcheng
Created: 2011-11-21 19:53:43+00:00
State: open

When running oneJar with the following configuration:

```
lazy val utils = Project(id="utils", base=file("utils"), settings=utilsSettings)
val utilsSettings = Seq(
name := "Utilities",
version := "1.0.0",
organization := "myorg",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "1.6.1" % "test",

"org.apache.httpcomponents" % "httpclient" % "4.1.2"
),
unmanagedClasspath in Compile := (file("ant/testlib") ** "*.jar").get.classpath,
unmanagedClasspath in Runtime := (file("ant/testlib") ** "*.jar").get.classpath,
mainClass := Some("foo"),
artifactPath in SbtOneJar.oneJar := file("/tmp/foo.jar"),
projectID in SbtOneJar.oneJar := ModuleID("a","b","c"),
exportJars := true
) ++ SbtOneJar.oneJarSettings
```

I get

```
[error] References to undefined settings:
[error]
[error] utils/compile:package-bin from utils/*:mappings(for one-jar)
[error]
[error] utils/runtime:dependency-classpath from utils/*:mappings(for one-jar)
[error]
[error] utils/*:module-name from utils/*:artifact(for one-jar)
[error]
[error] utils/*:cache-directory(for one-jar) from utils/*:cache-directory(for one-jar)
[error]
[error] utils/*:target from utils/*:base-directory(for one-jar-redist)
[error]
[error] utils/*:cross-target(for one-jar) from utils/*:artifact-path(for one-jar)
[error]
[error] Use 'last' for the full log.
```