Allow projectpackage: resource reads by default in Gradle plugin (#1735)

Fix an inconsistency: they are allowed as imports, but not reads.
This commit is contained in:
Daniel Chao
2026-07-06 14:41:52 -07:00
committed by GitHub
parent eaf73af247
commit 3fc97d8dad
@@ -309,7 +309,9 @@ public class PklPlugin implements Plugin<Project> {
"repl:", "file:", "modulepath:", "https:", "pkl:", "package:", "projectpackage:"));
spec.getAllowedResources()
.convention(List.of("env:", "prop:", "file:", "modulepath:", "https:", "package:"));
.convention(
List.of(
"env:", "prop:", "file:", "modulepath:", "https:", "package:", "projectpackage:"));
spec.getEvalRootDir().convention(project.getRootProject().getLayout().getProjectDirectory());