forked from incubos/2022-highload-dht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (55 loc) · 1.74 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
plugins {
id 'java'
id 'application'
id 'net.ltgt.errorprone' version '2.0.2'
id 'checkstyle'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
// Checks
errorprone 'com.google.errorprone:error_prone_core:2.15.0'
checkstyle 'com.puppycrawl.tools:checkstyle:10.3.3'
// Logging
implementation 'org.slf4j:slf4j-api:2.0.0'
implementation 'ch.qos.logback:logback-classic:1.4.0'
// As one-nio uses log4j directly
implementation 'org.slf4j:log4j-over-slf4j:2.0.0'
// Annotations for better code documentation
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// Our beloved one-nio
implementation 'ru.odnoklassniki:one-nio:1.5.0'
// LevelDB
implementation group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12'
//implementation 'jdk.incubator.foreign'
implementation 'org.rocksdb:rocksdbjni:7.5.3'
// JUnit Jupiter test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
// Use JDK Incubator Foreign module (for MemorySegment users)
def incubatorArgs = ["--add-modules", "jdk.incubator.foreign"]
application {
mainClass = 'ok.dht.test.pashchenko.DemoServer'
applicationDefaultJvmArgs = ['-Xmx128m'] + incubatorArgs
}
test {
maxHeapSize = "128m"
useJUnitPlatform()
}
checkstyle {
configFile = new File("checkstyle.xml")
checkstyleTest.enabled = false
}
tasks.withType(JavaCompile) {
options.compilerArgs += incubatorArgs
}
tasks.withType(Test) {
jvmArgs += incubatorArgs
}