-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
48 lines (43 loc) · 1.5 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
38
39
40
41
42
43
44
45
46
47
48
buildscript {
repositories {
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repo.9ci.com/oss-snapshots" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.yakworks:gradle-plugins:1.1.14"
}
}
apply plugin: 'yakworks.shipyak' //our opinionated defaults for gradle groovy & grails projects
subprojects {
repositories {
//shipyak adds the other repos we need
maven { url "http://repo.9ci.com/oss-snapshots" }
mavenLocal()
}
plugins.withId('java') {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
// compile "org.grails.plugins:converters:3.3.1" //JSON converter
// compile "org.grails:grails-plugin-controllers"
testRuntime "com.h2database:h2"
testRuntime "org.apache.tomcat:tomcat-jdbc"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
testCompile "org.grails.plugins:build-test-data:$versionBuildTestData"
testCompile "org.grails:views-json-testing-support:$versionViews"
}
}
configurations {
testCompile.extendsFrom compileOnly //includes the compileOnly in tests too so we don't have to list twice
all {
resolutionStrategy.cacheChangingModulesFor 1, 'seconds' //when changing = true this sets the cache time
}
}
}
ext.codenarcRuleset= '''
//getRule('Println').enabled = false
'''