Adding classpath entries using Gradle's Application plugin

后端 未结 5 504
攒了一身酷
攒了一身酷 2021-02-01 18:57

I\'m using Gradle\'s Application plugin to generate the install for a standalone java application. I have a configuration file I need to put on the classpath but I can\'t seem t

5条回答
  •  深忆病人
    2021-02-01 19:49

    The easiest way to get a file onto the class path is to put it into src/main/resources. src/dist is for adding files to the distribution (i.e. zip file), not to the Jar/class path.

提交回复
热议问题