Gradle before compile step

is there any way to change the text of .java file before it gets compiled?
8 Replies
JavaBot
JavaBot15mo ago
This post has been reserved for your question.
Hey @Koblížkáč! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Koblížkáč
KoblížkáčOP15mo ago
(using gradle plugins ig)
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
dan1st
dan1st15mo ago
Is it necessary to change it or is it sufficient to add classes? changing stuff before compilation is a bit fragile and may not work that well with IDEs but adding classes works pretty well
Koblížkáč
KoblížkáčOP15mo ago
alright thanks ill check it out
JavaBot
JavaBot15mo ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
dan1st
dan1st15mo ago
if you want to do that and also access these classes from your code, you can use annotation processors though setting that up can be a bit annoying
JavaBot
JavaBot15mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?