forked from JetBrains/KotlinMultiplatformPlayground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (51 loc) · 1.63 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
buildscript {
repositories {
google()
jcenter()
maven { url "http://kotlin.bintray.com/kotlinx" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_android_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.moowork.gradle:gradle-node-plugin:$gradle_node_version"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$kotlin_native_version"
}
}
plugins {
id 'cz.malohlava' version '1.0.3'
}
allprojects {
group 'org.jetbrains'
version '1.0-SNAPSHOT'
repositories {
google()
jcenter()
maven { url "http://kotlin.bintray.com/kotlinx" }
}
tasks.withType(Test) {
testLogging {
showStandardStreams = true
events "passed", "failed"
}
}
}
task convertGraph(type: Exec) {
description 'Convert the task dependency graph to svg'
workingDir project.buildDir
commandLine 'dot', '-Tsvg', 'reports/visteg.dot', '-o', 'reports/visteg.svg'
doLast {
println "Task dependency graph is available in file://$project.buildDir/reports/visteg.svg"
}
}
task graph(type: Exec) {
dependsOn convertGraph
group 'Custom'
description 'Opens the task dependency graph in Safari'
workingDir project.buildDir
def isMacOs = System.properties['os.name'].toLowerCase().startsWith('mac')
if (isMacOs) {
commandLine 'open', '-a', 'Safari', 'reports/visteg.svg'
}
}