Skip to content

Commit 641c477

Browse files
committed
Use convention instead of set in PaperCheckstyle
1 parent 2d0c49d commit 641c477

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paperweight-core/src/main/kotlin/io/papermc/paperweight/checkstyle/PaperCheckstyle.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ abstract class PaperCheckstyle : Plugin<Project> {
4040
}
4141

4242
target.tasks.withType(PaperCheckstyleTask::class.java).configureEach {
43-
rootPath.set(project.rootDir.path)
44-
directoriesToSkip.set(ext.directoriesToSkip)
45-
typeUseAnnotations.set(ext.typeUseAnnotations)
46-
customJavadocTags.set(ext.customJavadocTags)
43+
rootPath.convention(project.rootDir.path)
44+
directoriesToSkip.convention(ext.directoriesToSkip)
45+
typeUseAnnotations.convention(ext.typeUseAnnotations)
46+
customJavadocTags.convention(ext.customJavadocTags)
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)