Adding file to jar file before build finishes

I want to add a file before a builůd finishes(like a config yml file or smth liek that), how can it be done?
9 Replies
JavaBot
JavaBot11mo 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.
dan1st
dan1st11mo ago
How do you get the file? Is it generated? If so, how?
Koblížkáč
KoblížkáčOP11mo ago
the file is just sitting there its not generated or anything
dan1st
dan1st11mo ago
just put it in the resource directory? gradle should automatically copy the files there
Koblížkáč
KoblížkáčOP11mo ago
oh no, mb i meant it like its provided by my plugin
dan1st
dan1st11mo ago
in what way?
Koblížkáč
KoblížkáčOP11mo ago
well my plan was folloring: you tell the gradle plugin some stuff though extension and it it adds a file with this info to the jar file
dan1st
dan1st11mo ago
Depends on the Gradle plugin but generally, the Gradle plugin doesn't know anything about JAR files unless it's that Gradle plugin generating the JAR file
JavaBot
JavaBot11mo 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.
Want results from more Discord servers?
Add your server