Slackbot
12/28/2023, 7:06 PMSebastian Schuberth
12/28/2023, 7:12 PMCaleb Cushing
12/28/2023, 8:49 PMCaleb Cushing
12/28/2023, 8:50 PMapi and not compileOnlyApi in some cases, but that's not a huge deal (for me), might report bugVampire
12/28/2023, 10:46 PMapi and when compileOnlyApi?Caleb Cushing
12/28/2023, 10:56 PMCaleb Cushing
12/28/2023, 10:57 PMVampire
12/28/2023, 11:18 PMcompileOnlyApi with compileOnly.Vampire
12/28/2023, 11:20 PMcompileOnly.
And annotation - even with runtime retention - should never be necessary on the compile or runtime classpath of a downstream project.
The downstream project just needs the annotation class in its runtime if it actually wants to retrieve the annotation and its information and for that it has it in its own classpath already anyway.Vampire
12/28/2023, 11:21 PMcompileOnlyApi is for things that you need at compile time, but not at runtime and that also downstream projects need at compile time but not at runtime.
I cannot give you an example of such a dependency as I don't know for which use-case they are needed and if anyone actually needed them or whether it was only added for symmetry.Caleb Cushing
12/28/2023, 11:22 PMVampire
12/28/2023, 11:23 PMapi.
And for example If something is only used in private API or method implementations it should go to implementation.
And if something is nowhere used, it should be removed, or maybe sent to runtimeOnly for example.Vampire
12/28/2023, 11:24 PMVampire
12/28/2023, 11:24 PMcompileOnly.Vampire
12/28/2023, 11:25 PMCaleb Cushing
12/28/2023, 11:25 PMVampire
12/28/2023, 11:25 PMcompileOnlyApiCaleb Cushing
12/28/2023, 11:25 PMVampire
12/28/2023, 11:25 PMCaleb Cushing
12/28/2023, 11:25 PMVampire
12/28/2023, 11:25 PMCaleb Cushing
12/28/2023, 11:25 PMVampire
12/28/2023, 11:26 PMCaleb Cushing
12/28/2023, 11:26 PMCaleb Cushing
12/28/2023, 11:27 PMVampire
12/28/2023, 11:27 PMVampire
12/28/2023, 11:28 PMCaleb Cushing
12/28/2023, 11:28 PMVampire
12/28/2023, 11:28 PMVampire
12/28/2023, 11:28 PMCaleb Cushing
12/28/2023, 11:29 PMCaleb Cushing
12/28/2023, 11:29 PMCaleb Cushing
12/28/2023, 11:29 PMCaleb Cushing
12/28/2023, 11:30 PMCaleb Cushing
12/28/2023, 11:30 PMVampire
12/28/2023, 11:30 PMCaleb Cushing
12/29/2023, 1:33 AMCaleb Cushing
12/29/2023, 1:33 AMVampire
12/29/2023, 2:00 AM