-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (52 loc) · 1.32 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
plugins {
id 'java'
id 'maven-publish'
id 'application'
id "me.champeau.gradle.jmh" version "0.5.2"
}
sourceCompatibility = 11
group = 'tsypanov'
version = '1.0-SNAPSHOT'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
}
ext {
jmhVersion = "1.28"
jupiterVersion = "5.3.2"
}
sourceSets {
generated {
java {
srcDir "$projectDir/jmh/generated"
}
}
}
//compileJava {
// options.compilerArgs += ["-XDstringConcat=inline"]
//}
dependencies {
implementation "org.openjdk.jmh:jmh-core:${jmhVersion}"
implementation "org.apache.commons:commons-lang3:3.8.1"
compileOnly "org.openjdk.jmh:jmh-generator-annprocess:${jmhVersion}"
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:${jmhVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${jupiterVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${jupiterVersion}"
}
//tasks.withType(JavaCompile) {
// println 'Compiler args: ' + options.compilerArgs.toString();
//}
ext.moduleName = 'strings-jmh-examples'
compileJava {
inputs.property('moduleName', moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath
]
classpath = files()
}
}
mainClassName = 'tsypanov.strings.benchmark.BenchmarkRunner'