forked from grails/grails-data-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
37 lines (29 loc) · 1.08 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apply plugin: 'codenarc'
dependencies {
documentation "org.codehaus.groovy:groovy-cli-picocli:$groovyVersion"
compile "org.grails:grails-datastore-gorm:${gormVersion}"
compile "com.graphql-java:graphql-java:$graphqlJavaVersion"
codenarc "org.codenarc:CodeNarc:$codenarcVersion"
testCompile "org.grails:grails-datastore-gorm-hibernate5:${gormHibernateVersion}"
testCompile "org.grails:grails-datastore-gorm-mongodb:${gormMongoDbVersion}"
testCompile 'com.github.fakemongo:fongo:2.1.0'
testRuntime "com.h2database:h2:1.4.192"
testRuntime "org.apache.tomcat:tomcat-jdbc:8.5.0"
testRuntime "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.0"
testRuntime "org.slf4j:slf4j-api:$slf4jVersion"
}
targetCompatibility = 1.8
sourceCompatibility = 1.8
codenarc {
toolVersion = codenarcVersion
configFile = file("${projectDir}/config/codenarc/rules.groovy")
maxPriority1Violations = 0
maxPriority2Violations = 2
maxPriority3Violations = 8
}
codenarcMain {
exclude '**/GormScalars.groovy'
}
codenarcTest {
ignoreFailures = true
}