forked from dorongold/gradle-task-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (59 loc) · 1.79 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: "com.gradle.plugin-publish"
sourceCompatibility = 1.7
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.10.0"
}
}
repositories {
jcenter()
}
group = 'com.dorongold.plugins'
version = '1.5'
description = "Gradle plugin that adds a 'taskTree' task that prints task dependency tree"
//Building a text file that contains the classpath of the plugin code. needed for testing on gradle versions prior to 2.5
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 localGroovy()
compile gradleApi()
compile 'org.apache.commons:commons-lang3:3.4'
testCompile gradleTestKit()
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
testCompile 'com.netflix.nebula:nebula-test:5.0.1'
testRuntime files(createClasspathManifest)
}
pluginBundle {
website = 'https://github.com/dorongold/gradle-task-tree'
vcsUrl = 'https://github.com/dorongold/gradle-task-tree.git'
description = "Gradle plugin that adds a 'taskTree' task that prints task dependency tree"
tags = ['task', 'tree', 'dependencies', 'dependency']
plugins {
taskTreePlugin {
id = 'com.dorongold.task-tree'
displayName = 'Gradle Task Tree Plugin'
}
}
}
test {
testLogging {
// showStandardStreams = true
exceptionFormat = 'full'
}
}