-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (44 loc) · 1.63 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
plugins {
id 'java-library'
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
group = GROUP_ID
version = VERSION
ext {
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
slf4jVersion = "1.7.36"
// https://mvnrepository.com/artifact/org.projectlombok/lombok
lombokVersion = "1.18.24"
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
junitVersion = "5.9.0"
// https://mvnrepository.com/artifact/org.openjdk.jmh/jmh-core
jmhVersion = "1.35"
}
dependencies {
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
testImplementation "org.slf4j:slf4j-simple:$slf4jVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.openjdk.jmh:jmh-core:$jmhVersion"
testAnnotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:$jmhVersion"
implementation "org.dreamcat:common-core:0.3"
}
test {
useJUnitPlatform()
testLogging {
// clean the test cache: gradle cleanTest
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
apply from: "./publish.gradle"