-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (61 loc) · 1.74 KB
/
build.gradle
File metadata and controls
72 lines (61 loc) · 1.74 KB
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
72
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.6"
}
}
group 'com.psa'
version '1.0'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: "com.gradle.plugin-publish"
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile gradleApi()
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile group: 'net.sourceforge.cobertura', name: 'cobertura', version: '2.1.1'
testCompile 'junit:junit:4.12'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'cglib:cglib-nodep:2.2'
testCompile gradleTestKit()
testRuntime files("${buildDir}/createClasspathManifest")
testRuntime "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.3"
testRuntime "com.android.tools.build:gradle:2.2.0"
}
install {
repositories.mavenInstaller {
pom.version = project.version
pom.artifactId = "coverage"
}
}
pluginBundle {
website = 'http://www.gradle.org/'
vcsUrl = 'https://github.com/psa-anddev/coverage-gradle-plugin'
description = 'Coverage plugin'
tags = ['coverage', 'cobertura']
plugins {
coveragePlugin {
id = 'com.psa.coverage'
displayName = 'Coverage Plugin'
}
}
}
// Write the plugin's classpath to a file to share with the tests
task createClasspathManifest {
def outputDir = file("$buildDir/$name")
println(outputDir)
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
}
}