我读了你可以使用g:meta标签和grials接口Meta类访问的application.properties文件。这很好但是,我看到了一些这样的示例项目
plugins.export=1.5
plugins.google-visualization=0.5.6
plugins.jquery-ui=1.8.24
plugins.markdown=1.0.0.RC1
plugins.svn=1.0.0.M1
此文件中使用mension版本有什么用处。请告诉我该文件的确切用法。
答案 0 :(得分:2)
回到石器时代,根据您的示例,插件依赖项列在application.properties
中。但是这已经改变了(很久以前),它们现在应该列在BuildConfig.groovy
中。通常,application.properties
仅定义以下内容
# the version of Grails that should be used
app.grails.version=2.4.3
# the name of the app
app.name=myapp
# the version of the servlet API that should be used
app.servlet.version=3.0
# the version of your app
app.version=0.1