-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
59 lines (50 loc) · 1.48 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
plugins {
id 'maven'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.11.0'
id 'net.saliman.cobertura' version '2.3.0'
id 'com.github.kt3k.coveralls' version '2.4.0'
// id 'com.github.ksoichiro.console.reporter' version '0.3.4'
}
repositories {
mavenCentral()
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'signing'
apply plugin: 'com.gradle.plugin-publish'
apply from: "${rootDir}/gradle/meta.gradle"
apply from: "${rootDir}/gradle/release.gradle"
task createClasspathManifest {
def outputDir = file("$buildDir/$name")
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("${outputDir}/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
}
}
dependencies {
compile gradleApi()
compile localGroovy()
testRuntime files(createClasspathManifest)
testCompile gradleTestKit()
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
testRuntime 'cglib:cglib-nodep:3.2.0'
testCompile 'net.saliman:gradle-cobertura-plugin:2.3.0'
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
idea.module.excludeDirs += file('.repo')
fileTree(dir: "samples").visit { details ->
if (details.name in ['.gradle', 'build']) {
idea.module.excludeDirs << details.file
}
}
check.dependsOn('cobertura')