mmizutani / sbt-play-gulp

Gulp asset pipeline for Play Framework
Other
37 stars 12 forks source link

error: `<+=` operator is removed. Try `lhs += { x.value }` #30

Closed joseblas closed 6 years ago

joseblas commented 6 years ago

error: <+= operator is removed. Try lhs += { x.value }

unmanagedResourceDirectories in Assets <+= (gulpDirectory in Compile)(base => base / "build") sbt 1.1.1 sbt.version=1.1.1

Play 2.6.11 addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.11")

addSbtPlugin("com.github.mmizutani" % "sbt-play-gulp" % "0.2.0")


When creating a new Play project I get this error.

mmizutani commented 6 years ago

The plugin and sample already migrated the operators to the new syntax, but I forgot to update that part of the doc. The README has just been fixed: https://github.com/mmizutani/sbt-play-gulp/commit/92c652b7fe980dd6717efbf00f78a10d15b1399d. Thanks.

joseblas commented 6 years ago

Hi, sorry to bother you, but the documentation is not updated.

import PlayGulpKeys._ fails and this is mentioned twice: import com.github.mmizutani.sbt.gulp.PlayGulpPlugin import PlayGulpPlugin._

And still getting an exception when: unmanagedResourceDirectories in Assets += (gulpDirectory in Compile)(base => base / "app/dist") what makes my assets jar not to have the assets.

Thanks, for this lib. I've used before and is great.

joseblas commented 6 years ago

this works unmanagedResourceDirectories in Assets += baseDirectory.value / "pictures"

mmizutani commented 6 years ago

This also work: https://github.com/mmizutani/sbt-play-gulp/blob/92c652b7fe980dd6717efbf00f78a10d15b1399d/sbt-play-gulp/src/main/scala/com/github/mmizutani/sbt/gulp/PlayGulpPlugin.scala#L101-L102