How can I specify a local jar file as a dependency in Play! Framework 1.x

别来无恙 提交于 2019-11-28 07:35:09

just like the answer in google groups said, I could achieve it with the following dependencies.yml file

for library /jar/DateHelper-1.0.jar

require:
    - play -> crud
    - provided -> DateHelper 1.0 
repositories: 
    - provided: 
        type:       local 
        artifact:   "${application.path}/jar/[module]-[revision].jar" 
        contains: 
            - provided -> * 

(You need to create the jar dir and put your jar files in it)

so, according to the ${xxxx} it seems like dependecies.yml file is processed like a template... just like happens with the routes file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!