forked from dorongold/gradle-task-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (65 loc) · 1.97 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
72
73
74
75
76
77
78
79
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven-publish'
apply plugin: 'com.gradle.plugin-publish'
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.gradle.publish:plugin-publish-plugin:0.15.0'
}
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
group = 'com.dorongold.plugins'
version = '2.1.0'
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.5'
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
testCompile 'com.netflix.nebula:nebula-test:5.0.1'
testCompile 'commons-io:commons-io:2.5'
testRuntime files(createClasspathManifest)
}
pluginBundle {
website = 'https://github.com/dorongold/gradle-task-tree'
vcsUrl = 'https://github.com/dorongold/gradle-task-tree.git'
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'
}
}