Skip to content

fix: properly resolve platform plugin file templates - #1905

Merged
0utplay merged 3 commits into
nightlyfrom
plugin-files-template
Oct 5, 2026
Merged

0utplay merged 3 commits into
nightlyfrom
plugin-files-template

Conversation

@derklaro

@derklaro derklaro commented Oct 4, 2026

Copy link
Copy Markdown
Member

Motivation

Currently the template file resolution is trying to resolve a file within the project dir. This has a major flaw, which is that Gradle cache results can stay up-to-date even if the file was modified. Also, given that the current resolution depends on a hack, resolving the file is not guaranteed to succeed and there is no proper way to debug issues like this.

Modification

Add all resource source directories to the compiler sourcepath. This has the downside that resource modifications trigger full java source recompilation for modules and plugins, but resolution of the files is now working properly.

Result

Template files for module/plugin configurations are now resolved reliable and workaround-free.

@derklaro derklaro added this to the 4.0.0-RC17 milestone Oct 4, 2026
@derklaro
derklaro requested a review from 0utplay October 4, 2026 16:10
@derklaro derklaro self-assigned this Oct 4, 2026
@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: plugin An issue/pull request releated to one of the internal plugins in: module An issue/pull request releated to one of the internal modules in: plugin inject An issue/pull request releated to the plugin inject module code labels Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

Test Results

 56 files  ±0   56 suites  ±0   4m 23s ⏱️ ±0s
572 tests ±0  572 ✅ ±0  0 💤 ±0  0 ❌ ±0 
939 runs  ±0  939 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 0e51eb7. ± Comparison against base commit 5669754.

try (var templateFileReader = templateFileResource.openReader(true)) {
return this.parser.parse(templateFileReader);
}
} catch (IOException _) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably log this or comment why it doesn't need to be logged

@0utplay
0utplay merged commit 2ab6db5 into nightly Oct 5, 2026
5 checks passed
@0utplay
0utplay deleted the plugin-files-template branch October 5, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: module An issue/pull request releated to one of the internal modules in: plugin inject An issue/pull request releated to the plugin inject module code in: plugin An issue/pull request releated to one of the internal plugins t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants