-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (56 loc) · 1.64 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
import dev.oop778.gradle.common.CommonPlugin
plugins {
id 'java-library'
id "com.ryandens.javaagent-test" version "0.4.2"
id "io.github.reyerizo.gradle.jcstress" version "0.8.15"
id 'com.github.johnrengelman.shadow' version '8.1.1'
id "me.champeau.jmh" version "0.7.1"
id 'signing'
id 'maven-publish'
}
apply plugin: CommonPlugin
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
jcstress {
verbose = "true"
}
jmh {
profilers = ["async:output=flamegraph"]
synchronizeIterations = false
}
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
testImplementation(fileTree("javaagent"))
testJavaagent(fileTree("javaagent"))
jmhImplementation(fileTree("javaagent"))
// lombok
compileOnly("org.projectlombok:lombok:1.18.20")
annotationProcessor("org.projectlombok:lombok:1.18.20")
//junit-jupiter-engine
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.7.2")
testCompileOnly("org.projectlombok:lombok:1.18.20")
testAnnotationProcessor("org.projectlombok:lombok:1.18.20")
// jsr305
api("com.google.code.findbugs:jsr305:3.0.2")
}
//tasks.withType(JavaForkOptions).configureEach {
// jvmArgs += [
// '--add-opens', 'java.base/java.util=ALL-UNNAMED',
// '--add-opens', 'java.base/java.util.concurrent.atomic=ALL-UNNAMED',
// '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
// '--add-opens', 'java.base/java.util.concurrent=ALL-UNNAMED',
// ]
//}
shadowJar {
relocate("dev.oop778.bindings", "com.emerald.system.binding")
}
common {
createPublicationFrom(components.java, project.name)
}