mirror of
https://github.com/apple/pkl.git
synced 2026-07-07 05:25:17 +02:00
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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user