我在迁移到Play 1.2时有点迷失.我们的应用程序中有一组自定义模块.在Play 1.1.1中,我们使用了这种结构:
/root/
/module1
/module2
...
/moduleN
/main app
Run Code Online (Sandbox Code Playgroud)
而application.conf将模块引用为相对路径(../ module1)
我怎么能在Play 1.2中做同样的事情?我看到我应该使用 dependencies.yml文件,但在官方文档中找不到关于此主题的任何信息.
提前致谢
编辑: 谷歌集团有很多混合信息,但这篇文章解决了这些问题.
我在这里复制它,以便为在SO中搜索此问题的人提供未来参考:
好的,使用最新的master,这里需要的dependencies.yml和注释内联:
# Application dependencies
# Notes:
# play is an alias for play -> play $currentVersion
# play -> crud is an alias for play -> crud $currentVersion
# play -> secure is an alias for play -> secure $currentVersion
# Modules from the main repository use 'play' as organisation
#
require:
- play
- play -> …Run Code Online (Sandbox Code Playgroud)