mariussoutier / sbt-unpack

sbt unpack plugin
Apache License 2.0
3 stars 1 forks source link

Reference to undefined setting when using as source generator #1

Open parkan opened 6 years ago

parkan commented 6 years ago

I can't get sbt to automatically unpackJars. I'm trying

import com.mariussoutier.sbt.UnpackKeys
sourceGenerators in Compile += Def.sequential(UnpackKeys.unpackJars).taskValue

(readme is missing the .taskValue but adding TaskKeys to Tasks doesn't make sense)

and I get

Reference to undefined setting: 

  thing-parent/*:unpackJars from thing-parent/compile:sourceGenerators (/Users/arkadiy/thing/build.sbt:225)

Plugin is enabled and manual invocation works fine

mariussoutier commented 6 years ago

You are right about the missing .taskValue. You don't need Def.sequential for a single task by the way, sourceGenerators in Compile += UnpackKeys.unpackJars would be sufficient.

Other than that I can't see why it's not working. Can you share more of the build.sbt?