Skip to content

Commit d38cede

Browse files
refactor(testkit): inline function.
1 parent 1883100 commit d38cede

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testkit/gradle-testkit-plugin/src/main/kotlin/com/autonomousapps/GradleTestKitSupportExtension.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,10 @@ public abstract class GradleTestKitSupportExtension(private val project: Project
225225
return configurations.findByName(classpath)?.allDependencies
226226
?.filterIsInstance<ProjectDependency>()
227227
// filter out self-dependency
228-
?.filterNot { projectPath(it) == project.path }
229-
?.map { "${projectPath(it)}:$taskName" }
228+
?.filterNot { it.path == project.path }
229+
?.map { "${it.path}:$taskName" }
230230
}
231231

232-
private fun projectPath(projectDependency: ProjectDependency): String = projectDependency.path
233-
234232
/**
235233
* Adds a dependency on `com.autonomousapps:gradle-testkit-support` with version [DEFAULT_SUPPORT_VERSION] unless
236234
* otherwise specified.

0 commit comments

Comments
 (0)