Skip to content

Commit

Permalink
Merge pull request #3295 from square/jwilson.0227.relative_path
Browse files Browse the repository at this point in the history
Always use relative paths
  • Loading branch information
oldergod authored Feb 28, 2025
2 parents c7992fe + e2a57ff commit 804b292
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,7 @@ class WirePlugin : Plugin<Project> {
}

val targets = outputs.map { output ->
output.toTarget(
when (val out = output.out) {
null -> project.relativePath(source.outputDir(project))
project.libraryProtoOutputPath() -> project.relativePath(out)
else -> out
},
)
output.toTarget(project.relativePath(output.out ?: source.outputDir(project)))
}
val generatedSourcesDirectories: Set<File> =
targets
Expand Down

0 comments on commit 804b292

Please sign in to comment.