Slackbot
12/28/2023, 6:02 PMVampire
12/28/2023, 10:45 PMCopy or usually better Sync task. You can configure it to replace things by tokens, be regex, by any logic in a lambda, ....Caleb Cushing
12/28/2023, 10:50 PMVampire
12/28/2023, 11:04 PMspotless is the end of the chain.
It does this reformatting and then the build is finished.
It is still bad as it then is not up-to-date but runs again, but at least on the third run it would be up-to-date.
And additionally it does not operate on the output of another task, but on your manually written source files which also makes it less problematic.
But if you for example have a task that compiles code from Java to Class.
And then you have a task that instruments the Class files in-place, that is extremely bad.
The compilation task would for example always be out-of-date and always need to re-run, and there would also risk of problems with caching and so on.Vampire
12/28/2023, 11:05 PMopenApiGenerate task as srcDir like I wrote.
Instead you would have a task of type Sync that does the fix-up and has as input the output of openApiGenerate.
And that fix-up task would then be declared as srcDir.Vampire
12/28/2023, 11:06 PMdoLast action to the openApiGenerate task that does the fix-up in place in the files as then this action is part of the task and there it is ok.Caleb Cushing
12/28/2023, 11:07 PMVampire
12/28/2023, 11:31 PMVampire
12/28/2023, 11:31 PMCaleb Cushing
12/28/2023, 11:33 PMCaleb Cushing
12/28/2023, 11:33 PMCaleb Cushing
12/28/2023, 11:34 PMVampire
12/28/2023, 11:34 PMCaleb Cushing
12/28/2023, 11:35 PMCaleb Cushing
12/28/2023, 11:37 PMVampire
12/28/2023, 11:39 PMextra-java-module-info plugin to make it a module on the fly.Caleb Cushing
12/28/2023, 11:40 PMCaleb Cushing
12/28/2023, 11:40 PMCaleb Cushing
12/28/2023, 11:41 PMCaleb Cushing
12/28/2023, 11:41 PMVampire
12/28/2023, 11:42 PMCaleb Cushing
12/28/2023, 11:43 PMCaleb Cushing
12/28/2023, 11:44 PMCaleb Cushing
12/28/2023, 11:44 PMCaleb Cushing
12/28/2023, 11:45 PMVampire
12/28/2023, 11:46 PMAutomatic-Module-Name manifest entry or a module-info.class file, depending on what you configure for that dependency.Caleb Cushing
12/28/2023, 11:46 PMCaleb Cushing
12/28/2023, 11:47 PMCaleb Cushing
12/28/2023, 11:48 PMCaleb Cushing
12/28/2023, 11:48 PMVampire
12/28/2023, 11:49 PMYep, I'm going to call that a monkey patch and you are modifying things in the same way you just told me not to except you're doing it to a binary essentially (bearbeitet)
Don't do that, bad vampireYes, it is monkey patching. But no, it has absolutely nothing to do with what I said you should not do.
Vampire
12/28/2023, 11:49 PMCaleb Cushing
12/28/2023, 11:49 PMVampire
12/28/2023, 11:50 PMVampire
12/28/2023, 11:50 PMCaleb Cushing
12/28/2023, 11:50 PMCaleb Cushing
12/28/2023, 11:50 PMVampire
12/28/2023, 11:50 PMSync task between generation and compilationCaleb Cushing
12/28/2023, 11:51 PMVampire
12/28/2023, 11:51 PMVampire
12/28/2023, 11:51 PM