-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
89 lines (69 loc) · 1.67 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
80
81
82
83
84
85
86
// benchmark-suite core build.gradle
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.7"
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
// compileJava 'org.projectlombok:lombok:1.16.20'
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'me.champeau.gradle.jmh'
tasks.matching { task -> task.name == "test" }.all {
outputs.upToDateWhen { false }
}
task collectJars(type: Copy) {
into "$projectDir/libs"
from configurations.testRuntime
}
task dist(type: Tar, dependsOn: 'collectJars') {
dependsOn jar, jmhJar
from jar
from 'assembly/configs'
into('bin') {
from 'assembly/bin'
from '../core/assembly/bin'
}
into('lib') {
from 'libs'
exclude '*-jmh.jar'
}
into('conf') {
from 'src/main/resources'
}
into('jmh-lib') {
from 'build/libs'
include '*-jmh.jar'
}
}
jmh {
fork = 0
resultFormat = 'JSON'
}
jmhJar {
mergeServiceFiles()
}
task buildAll {
dependsOn build, collectJars, dist
//, jmhJar
}
}