Skip to content

Preprocessor Gradle plugin behavior #620

@Jolanrensen

Description

@Jolanrensen

As discussed in #616 and Jolanrensen/KoDEx#40 (comment) the preprocessor plugin can sometimes behave a bit odd.

Currently, it's configured to run automatically on each commit and add all newly generated files to Git. This comes with a few downsides:

  • You cannot specify which generated files to commit without turning off the commit hook
  • The processor is run each time a Jar is created or something is committed, even when nothing has changed in the source/generated files

Actually, the generated files only need to be updated when:

  • the input has changed
  • the output has changed (if we make the output Read only, we only need to detect file deletions

And as for the SimpleGit auto-add, only the files that are added/have commits in the src folder should be added in the generated-sources folder.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestperformanceSomething related to how fast the library can handle dataresearchThis requires a deeper dive to gather a better understanding

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions