-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (54 loc) · 1.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id 'groovy'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.12.2'
id 'com.diffplug.spotless' version '6.18.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
def groovyVersion = '3.0.9'
implementation group: 'org.codehaus.groovy', name: 'groovy-cli-commons', version: groovyVersion
testImplementation group: 'org.spockframework', name: 'spock-core', version: '2.3-groovy-3.0'
testImplementation group: 'cglib', name: 'cglib-nodep', version: '3.3.0'
testImplementation group: 'org.objenesis', name: 'objenesis', version: '3.1'
}
sourceSets {
main {
groovy {
srcDirs = ['.']
exclude([
'**/test/**',
'gradle/**',
'build/**',
'docker/**',
'bin/**',
'git-sync-test/**'
])
}
}
}
compileGroovy {
groovyOptions.configurationScript = file('gradle/config.groovy')
}
test {
useJUnitPlatform()
systemProperty 'skip.pull', System.properties['skip.pull']
}
ext.jacoco = [
exclusions: [
'SyncGitRepos$_run_closure*'
],
coverageThresholds: [
'SyncGitRepos': [
'BRANCH': 0.42,
'COMPLEXITY': 0.33,
'INSTRUCTION': 0.61,
'LINE': 0.71
]
]
]
apply from: 'https://raw.githubusercontent.com/devatherock/gradle-includes/master/checks.gradle'