Adding classpath entries using Gradle's Application plugin

后端 未结 5 510
攒了一身酷
攒了一身酷 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:45

    It seems to me that what I'm trying to do shouldn't be that far out of the ordinary, but as a workaround I can have the dist directory be src/dist/lib/conf which allows the conf directory to be placed in the lib directory and the classpath that gradle generates for the sh/bat files to be correct.

    I'll accept another answer if someone has a better one.

提交回复
热议问题