Find another way to avoid unused warnings

This commit is contained in:
Dale Wijnand 2017-03-03 10:47:36 +01:00
parent e67cd6948b
commit 7d27682fb2
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 6 additions and 2 deletions

View File

@ -41,8 +41,12 @@ object ScriptedPlugin extends AutoPlugin {
scriptedClasspath := getJars(scriptedConf).value,
scriptedTests := scriptedTestsTask.value,
scriptedRun := scriptedRunTask.value,
scriptedDependencies := (()),
scriptedDependencies := scriptedDependencies.dependsOn(compile in Test, publishLocal).value,
scriptedDependencies := {
def use[A](x: A*): Unit = () // avoid unused warnings
val analysis = (compile in Test).value
val pub = (publishLocal).value
use(analysis, pub)
},
scriptedLaunchOpts := Seq(),
scripted := scriptedTask.evaluated
)