2

ブランド向けにカスタマイズされたバージョンの Bootstrap を LESS ソースから含む WebJar を構築したいと考えています。私はsbt.version=0.13.5-M4project/build.propertiesaddSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0-M2a")持っていproject/plugins.sbtます。私build.sbtはこのように見えます:

import com.typesafe.web.sbt.WebPlugin
import com.typesafe.jse.sbt.JsEnginePlugin
import com.typesafe.web.sbt.WebPlugin.WebKeys

name := "brand-assets"

organization := "com.example"

version := "0.0.1-SNAPSHOT"

WebPlugin.webSettings

JsEnginePlugin.jsEngineSettings

lazy val root = (project in file(".")).addPlugins(SbtWeb)

excludeFilter in Assets := new PatternFilter("""[^_].*\.less""".r.pattern)

私が得るエラーは次のとおりです。

build.sbt:1: error: object web is not a member of package com.typesafe
import com.typesafe.web.sbt.WebPlugin
                    ^
build.sbt:2: error: object sbt is not a member of package com.typesafe.jse
import com.typesafe.jse.sbt.JsEnginePlugin
                        ^
build.sbt:15: error: value addPlugins is not a member of sbt.Project
lazy val root = (project in file(".")).addPlugins(SbtWeb)
                                       ^
sbt.compiler.EvalException: Type error in expression

私は何が欠けていますか?

4

1 に答える 1

0

これまでのところ、私はあなたの質問を理解していません。次の行を に追加する必要がありますplugin.sbt

resolvers += Resolver.typesafeRepo("releases")

https://github.com/sbt/sbt-less/issues/31で使用されなくなった

于 2014-09-13T22:20:30.790 に答える