grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.dependency.resolution = {
inherits "global"
log "warn"
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
grailsRepo "http://grails.org/plugins"
// mavenRepo "http://m2repo.spockframework.org/snapshots"
}
dependencies {
compile 'redis.clients:jedis:2.1.0'
}
plugins {
build ":release:2.0.3", {
export = false
}
test(':code-coverage:1.2.5') {
export = false
}
test(':codenarc:0.17') {
export = false
}
}
}
//codenarc {
// processTestUnit = false
// processTestIntegration = false
// propertiesFile = 'codenarc.properties'
// ruleSetFiles = "file:grails-app/conf/redis-codenarc.groovy"
// reports = {
// RedisReport('xml') { // The report name "MyXmlReport" is user-defined; Report type is 'xml'
// outputFile = 'target/codenarc.xml' // Set the 'outputFile' property of the (XML) Report
// title = 'Grails Redis Plugin' // Set the 'title' property of the (XML) Report
// }
// }
//}
//codenarc.properties =
//{ GrailsPublicControllerMethod.enabled = false EmptyIfStatement.priority = 1 }
codenarc.reports = {
// Each report definition is of the form:
// REPORT-NAME(REPORT-TYPE) {
// PROPERTY-NAME = PROPERTY-VALUE
// PROPERTY-NAME = PROPERTY-VALUE
// }
MyXmlReport('xml') { // The report name "MyXmlReport" is user-defined; Report type is 'xml'
outputFile = 'CodeNarc-Report.xml' // Set the 'outputFile' property of the (XML) Report
title = 'Sample Report' // Set the 'title' property of the (XML) Report
}
MyHtmlReport('html') { // Report type is 'html'
outputFile = 'CodeNarc-Report.html'
title = 'Sample Report'
}
}
最終更新:2013年05月16日 23:59