-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallprojects.gradle
54 lines (43 loc) · 1.14 KB
/
allprojects.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
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
group = 'com.github.morj.yjp-flamegraphs'
sourceCompatibility = 1.7
version = 'dev'
repositories {
mavenCentral()
}
tasks.withType(Test) {
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
System.getProperties().keySet().findAll {it.startsWith('test.')}.each {
jvmArgs "-D${it.replace('test.','')}=${System.getProperty(it)}"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
idea {
module { downloadSources = true }
}
artifacts {
archives jar
archives sourcesJar
}
mainClassName = "com.github.morj.flamegraphs.MainKt"
shadowJar {
mergeServiceFiles()
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
}