@@ -18,19 +18,19 @@ object ConscriptPlugin extends AutoPlugin {
18
18
List (
19
19
csSbtLauncherVersion := ConscriptBuildInfo .sbtLauncherVersion,
20
20
libraryDependencies += " org.scala-sbt" % " launcher-interface" % csSbtLauncherVersion.value % " provided" ,
21
- sourceDirectory in csRun := { (sourceDirectory in Compile ).value / conscriptStr },
22
- target in csRun := { target.value / conscriptStr },
23
- csBoot := { (target in csRun ).value / " boot" },
21
+ csRun / sourceDirectory := { (Compile / sourceDirectory ).value / conscriptStr },
22
+ csRun / target := { target.value / conscriptStr },
23
+ csBoot := { (csRun / target ).value / " boot" },
24
24
csWrite := csWriteTask.value,
25
25
csRun := csRunTask.evaluated,
26
- (aggregate in csRun ) := false
26
+ (csRun / aggregate ) := false
27
27
)
28
28
29
29
private def configs (path : File ) = (path ** " launchconfig" ).get
30
30
private def configName (path : File ) = file(path.getParent).getName
31
31
lazy val csWriteTask = Def .task {
32
- val base = (sourceDirectory in csRun ).value
33
- val output = (target in csRun ).value
32
+ val base = (csRun / sourceDirectory ).value
33
+ val output = (csRun / target ).value
34
34
val boot = csBoot.value
35
35
IO .delete(output)
36
36
IO .copyDirectory(base, output)
@@ -52,7 +52,7 @@ object ConscriptPlugin extends AutoPlugin {
52
52
val args = Def .spaceDelimited().parsed
53
53
val x = csWrite.value
54
54
val y = publishLocal.value
55
- val output = (target in csRun ).value
55
+ val output = (csRun / target ).value
56
56
val config = args.headOption.map { name =>
57
57
configs(output).find {
58
58
p => configName(p) == name
0 commit comments