Skip to content

Commit 63f2619

Browse files
authored
Preserve method parameter names in compiled plugin code
2 parents 7dd9cce + 72c058e commit 63f2619

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unified-prototype/unified-plugin/build-logic/src/main/kotlin/build-logic.publishing.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ signing {
1818
gradle.taskGraph.whenReady {
1919
signing.isRequired = allTasks.stream().anyMatch { it is com.gradle.publish.PublishTask }
2020
}
21+
22+
// we want plugins to preserve method parameter names in class files, useful in IDE auto-completion
23+
tasks.compileJava {
24+
options.compilerArgs.add("-parameters")
25+
}

0 commit comments

Comments
 (0)