11TaskKey [Unit ](" checkDependency" ) := {
22 assert(
3- libraryDependencies.value contains (" sbt.javaagent.test" % " maxwell" % sys.props(" project.version" ) % " provided" ),
3+ libraryDependencies.value contains (" sbt.javaagent.test" % " maxwell" % sys
4+ .props(" project.version" ) % " provided" ),
45 " maxwell test agent is not in libraryDependencies under 'provided'"
56 )
67}
@@ -16,22 +17,29 @@ TaskKey[Unit]("checkLog") := {
1617
1718TaskKey [Unit ](" checkDist" ) := {
1819 import scala .sys .process ._
19- val output = ((stagingDirectory in Universal ).value / " bin" / packageName.value).absolutePath.!!
20+ val output =
21+ ((Universal / stagingDirectory).value / " bin" / packageName.value).absolutePath.!!
2022 expect(" dist run" , output, " Agent 86" )
2123 expect(" dist run" , output, " class maxwell.Maxwell" )
2224}
2325
2426TaskKey [Unit ](" checkTestAndRunPaths" ) := {
2527 assert(
26- ! ((dependencyClasspath in Runtime ).value exists (f => f.data.name.contains(" maxwell" ))),
28+ ! ((Runtime / dependencyClasspath).value exists (f =>
29+ f.data.name.contains(" maxwell" )
30+ )),
2731 " maxwell test agent is available on the runtime class path"
2832 )
2933 assert(
30- (dependencyClasspath in Test ).value exists (f => f.data.name.contains(" maxwell" )),
34+ (Test / dependencyClasspath).value exists (f =>
35+ f.data.name.contains(" maxwell" )
36+ ),
3137 " maxwell test agent is not available on the test compile class path"
3238 )
3339 assert(
34- ! ((fullClasspath in Test ).value exists (f => f.data.name.contains(" maxwell" ))),
40+ ! ((Test / fullClasspath).value exists (f =>
41+ f.data.name.contains(" maxwell" )
42+ )),
3543 " maxwell test agent is available on the test run class path"
3644 )
3745}
0 commit comments