Skip to content

Commit 4ca708e

Browse files
authored
Fix: Crash during configuration on Windows (#65)
Changed `Project.getRelativePath()` to `Project.getRelativeProjectPath()`, since what was needed is the logical Gradle (project) relative path, not the file-system relative path. Fixes #64
1 parent e8d8817 commit 4ca708e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/kotlin/org/neotech/plugin/rootcoverage/RootCoveragePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class RootCoveragePlugin : Plugin<Project> {
165165
val name = variant.name.replaceFirstChar(Char::titlecase)
166166

167167
// Gets the relative path from this task to the subProject
168-
val path = project.relativePath(subProject.path).removeSuffix(":")
168+
val path = project.relativeProjectPath(subProject.path)
169169

170170
// Add dependencies to the test tasks of the subProject
171171
if (rootProjectExtension.shouldExecuteUnitTests()) {

0 commit comments

Comments
 (0)