什麼Grails BuildConfig.groovy,構建,編譯和運行時之間的區別?
grails.project.dependency.resolution = {
plugins {
build "acme:acme-cache:latest.integration"
}
dependencies {
build "com.foo.bar:foobar:1.0.5"
runtime "org.apache.httpcomponents:httpclient:4.0.3"
compile("com.thoughtworks.xstream:xstream:1.3.1")
}
}
Thanks,Don,很好的信息,只是另一個快速問題......'build'的約定似乎遵循''groupId:artifactId:repository或version'',運行時和編譯時它是一樣的嗎? – raffian 2012-01-06 15:15:40
是的,所有示波器的公約都是一樣的。我從來沒有使用'repository' - 我甚至不知道它存在,所以在我的情況下,我指定'groupId:artifactId:version'' – 2012-01-06 16:22:35
我們使用Artifactory來存儲我們所有的工件,所以這就是我提到它的原因。 ..再次感謝! – raffian 2012-01-06 16:45:42