我很难将jit-plugin集成到我的Grails 2.0.7项目中。遗憾的是,插件附带的文档没有提供足够的信息来了解如何将插件集成到mey GSP中。示例链接也都已死亡。 有人知道我为jit-plugin找到一个示例GSP的地方,还是可以为我提供一个? 或者甚至可以使插件与Grails 2.3.6一起使用?
以下是我的buildConfig.groovy
的摘录repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenCentral()
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
compile: ":jit:0.2:"
}
plugins {
// plugins for the build system only
build ":tomcat:7.0.50.1"
// plugins for the compile step
compile ":scaffolding:2.0.2"
compile ':cache:1.1.1'
compile ":pure-css:0.4.2"
compile: ":jit:0.2:"
// plugins needed at runtime but not for compilation
runtime ":hibernate:3.6.10.8" // or ":hibernate4:4.3.1.1"
runtime ":database-migration:1.3.8"
runtime ":resources:1.2.1"
runtime ":jquery:1.11.0"
// Uncomment these (or add new ones) to enable additional resources capabilities
//runtime ":zipped-resources:1.0.1"
//runtime ":cached-resources:1.1"
//runtime ":yui-minify-resources:0.1.5"
// An alternative to the default resources plugin is the asset-pipeline plugin
//compile ":asset-pipeline:1.5.0"
// Uncomment these to enable additional asset-pipeline capabilities
//compile ":sass-asset-pipeline:1.5.1"
//compile ":less-asset-pipeline:1.5.0"
//compile ":coffee-asset-pipeline:1.5.0"
//compile ":handlebars-asset-pipeline:1.0.0.3"
}
提前致谢。 克里斯