-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (61 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
65
66
67
68
69
70
71
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.2'
}
}
plugins {
id 'maven'
id 'maven-publish'
id 'net.saliman.cobertura' version '2.2.8'
id 'com.github.kt3k.coveralls' version '2.4.0'
}
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'
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
cobertura {
coverageFormats = ['html', 'xml']
}
idea {
module {
excludeDirs += [
file('.repo'),
]
}
}