GithubHelp home page GithubHelp logo

Comments (3)

eed3si9n avatar eed3si9n commented on July 23, 2024

The static type of sbtassembly.Plugin.assemblySettings is already Seq[sbt.Project.Setting[_]] and you're putting it in Seq again. I think.

from sbt-assembly.

 avatar commented on July 23, 2024

I thought of that, too, but here's what I get when I remove the Seq():

[error] /Users/psnively/vmware/git/vcib/vcaf-db/project/Build.scala:71: type mismatch;
[error] found : scala.Seq[sbt.Project.Setting[_]]
[error] required: Seq[scala.collection.TraversableOnce[?]]
[error] Error occurred in an application involving default arguments.
[error] settings = buildSettings ++ Seq (libraryDependencies := commonDeps, resolvers := cseResolvers) ++ (sbtassembly.Plugin.assemblySettings: _*)

To me, this is still just bizarre: it's as if there are two different kinds of Seq's being talked about. Does that make any sense?

from sbt-assembly.

eed3si9n avatar eed3si9n commented on July 23, 2024

I think you have to delay the set up by using settings method. The following worked for me:

import sbt._
import Keys._

object FooBuild extends Build {
  lazy val root = Project("root", file(".")) aggregate(cli)
  lazy val cli = Project("cli", file("cli")) settings(sbtassembly.Plugin.assemblySettings: _*)

  override lazy val settings = super.settings ++ Seq(
    version := "0.1-SNAPSHOT",
    organization := "com.example"
  )    
}

from sbt-assembly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.