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
⌛
This post has been reserved for your question.
Hey @Koblížkáč! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
How do you get the file?
Is it generated? If so, how?
the file is just sitting there
its not generated or anything
just put it in the resource directory?
gradle should automatically copy the files there
oh no, mb i meant it like its provided by my plugin
in what way?
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
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
💤
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.