Skip to content

"Reference to undefined setting" when adding "osgiSettings" to build.sbt #33

@sjmarotta

Description

@sjmarotta

I am importing sbt-osgi to my project using the git link in my local project's plugins.sbt file.
Here are the contents of my plugins.sbt file:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

lazy val plugins = (project in file("."))
  .dependsOn(sbtOsgi)

def sbtOsgi = uri("git://github.com/sbt/sbt-osgi.git")

With that in my build, I can run "sbt compile" and "sbt eclipse" without any trouble. When I add "osgiSettings" with a blank line before it to the end of my build.sbt, I get the following:

Reference to undefined setting:

  *:osgiBundle from compile:packageBin::packagedArtifact (C:\dev\myproject\build.sbt:18)

        at sbt.Init$class.Uninitialized(Settings.scala:270)
        at sbt.Def$.Uninitialized(Def.scala:10)

Is there something wrong with the way that I configured my project, or is this a problem with the plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions