Gradle distZip config files


I have an application installed via distZip (gradle application plugin). It has the bin and lib folders. Now where do I place the config files? Like logback.xml or application.properties, etc? Or do I need to somehow tell the plugin where are the files?


When using Gradle's Application plugin, any additional files or folders you want to include the in distribution should be placed in src/dist

You can refer to <strong>45.1.1. The distribution</strong> in the gradle manual. (<a href="https://docs.gradle.org/current/userguide/application_plugin.html" rel="nofollow">https://docs.gradle.org/current/userguide/application_plugin.html</a>)

Such as if you wanted a config directory to be part of your application distribution you could layout your project like so:

ExampleApplication/ └── src └── dist └── config └── logback.xml

Then when your distribution was created it would have a config directory at the top level containing logback.xml

If this directory structure presents an issue for your project, you can also manually add files and folders like so:

applicationDistribution.from('config') { into "config" }


  • port not opening even after adding rule in ufw?
  • 3d object recognition for AR android app
  • How to run method on client when subscribe is complete
  • How to install PHP pthreads in cpanel?
  • Why are there parentheses around scalar when assigning the return value of regex match in this Perl
  • Check every condition in Python if else even if one evaluates to true
  • How to load PDFs from Documents Directory?
  • Setting jCheckBox invisible in jTable
  • CRM Dynamics How to set short list - long list relationship
  • Using Fractions in Python
  • How to set title name of the pdf. While viewing the Document(New Tab)
  • Extract Data from a Web Page - using VBA
  • Count of values within specified range of value in each row using data.table
  • search bar getting disappeared in ios UIsearchcontroller
  • Is there a function to calculate the difference between two times and display a relative result?
  • How to split a string into a list by digits? [duplicate]
  • How do I hide and show the contents contents of a modal?
  • how to reload page after uploading images
  • Joining across databases with dbplyr
  • QNetworkAccessManager one instance and connecting slots
  • How to convert SVG to jVectorMap format
  • DocuSign API Replace template document but keep fields
  • Implementing and using MinMax with four in row (connect4) game
  • Can someone explain how Yii minimizing assets is supposed to work on Heroku?
  • SELECT on JSONField with Django
  • characters not allowed in DOM ids by spec, and by browser
  • Loading hyperspectral images in Octave
  • Multiple canvases (pages) in Fabric.js
  • Circular Left Rotation Algorithm in C#
  • cSPADE data mining in R using arulesSequences - Error while converting to “transactions” format
  • How to define a custom accuracy in Keras to ignore samples with a particular gold label?
  • 'Edit' function for forum posts and such
  • Getting the type of a “Type” in C# reflection
  • Ember.js + JQuery-UI Tooltip - Tooltip does not reflect the model / controller changes
  • I am consuming a WCF service that requires headers from a .NET 2 website. How can I programmatically
  • Error handeling in antlr 3.0
  • Stacked bar chart with continuous time-axis as x-axis
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • Update cell query for Excel ADO from Delphi
  • Grails - How to implement a foreign key relationship not using an id column?