Once Amper supports extensibility, will there be a way to mark some sources as generated, and a programmatic way to know if a source set or file is generated?
Tools like Detekt will be better with it (it's not supported in Gradle, BTW)
✅ 1
a
Anton Prokhorov
06/10/2025, 9:35 AM
100% definitely, we already have a foundation for that
🎉 1
👀 1
❤️ 1
j
joffrey
06/10/2025, 1:32 PM
@louiscad What do you mean by "and a programmatic way to know if a source set or file is generated?"?
From where do you want to know this?
l
louiscad
06/10/2025, 1:43 PM
@joffrey From a linter program. I don't need it myself, but static code analysis tools like detekt and others would.
🙏 1
j
joffrey
06/10/2025, 2:31 PM
Thanks for sharing. So what I can say for sure is that the first prototype will have a way to register generated sources as outputs of custom tasks. Regarding depending on generated sources as inputs, there will probably be a way to do so (as in depending on all sources), but it will probably not be possible to know which of these source dirs are generated or handwritten.
l
louiscad
06/10/2025, 2:35 PM
You mean not in the next version, but eventually possible?
j
joffrey
06/10/2025, 2:35 PM
Yes, I just mean for the first prototype iteration