-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (56 loc) · 1.62 KB
/
build.gradle
File metadata and controls
73 lines (56 loc) · 1.62 KB
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
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'dev.nightowl'
version = '1.0.11'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testCompileOnly 'org.projectlombok:lombok:1.18.34'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
implementation 'dnsjava:dnsjava:3.6.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
testImplementation 'org.assertj:assertj-core:3.24.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.10.1'
testImplementation 'org.openjdk.jmh:jmh-core:1.37'
testAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.37'
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
tasks.register('benchmark', JavaExec) {
dependsOn testClasses
classpath = sourceSets.test.runtimeClasspath
mainClass = 'org.openjdk.jmh.Main'
args = ['.*Benchmark.*', '-f', '1', '-wi', '3', '-i', '5', '-r', '1', '-rf', 'json', '-rff', 'benchmark-results.json']
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
javadoc {
options.encoding = 'UTF-8'
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'mailjudge'
}
}
repositories {
maven {
url = uri("${buildDir}/repo")
}
}
}