Grails BuildConfig.groovy, difference between build, compile, and runtime?

后端 未结 4 1221
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 22:15

What\'s the difference between build, runtime, and compile, in BuildConfig.groovy (1.3.7)

grails.project.         


        
4条回答
  •  离开以前
    2020-12-07 23:06

    A couple grails commands help illustrate the difference. Consider grails run-app and grails compile. grails compile is the compile step and will include compile-time dependencies. grails run-app is the run step and will include runtime dependencies. Build dependencies are anything that you might need to run any of these commands, for example, a custom script that hooks into some build events.

    So you would pick the one that best fits when you need to be certain the dependency is included.

提交回复
热议问题