-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
85 lines (64 loc) · 2.71 KB
/
build.gradle.kts
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
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id("java")
id("io.freefair.lombok") version "8.11"
id("org.springframework.boot") version "3.4.0"
id("io.spring.dependency-management") version "1.1.6"
id("application")
}
application {
mainClass.set("com.limechain.Main")
}
group = "com.limechain"
version = "0.1.0"
java.sourceCompatibility = JavaVersion.VERSION_22
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://artifacts.consensys.net/public/maven/maven/")
}
dependencies {
implementation("net.openhft:zero-allocation-hashing:0.27ea0")
implementation("org.rocksdb:rocksdbjni:9.7.3")
compileOnly("org.projectlombok:lombok:1.18.36")
implementation("org.projectlombok:lombok:1.18.36")
implementation("org.web3j:crypto:4.12.2")
implementation("com.dylibso.chicory:wasm:0.0.12")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.mockito:mockito-core:5.14.2")
// CLI
implementation("commons-cli:commons-cli:1.9.0")
// TODO: Publish imported packages to mvnrepository and import them
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("org.springframework.boot:spring-boot-starter-web")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// Websockets
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.java-websocket:Java-WebSocket:1.5.7")
implementation("org.javatuples:javatuples:1.2")
implementation("com.github.luben:zstd-jni:1.5.6-8")
// Prometheus
implementation("io.prometheus:prometheus-metrics-core:1.3.4")
implementation("io.prometheus:prometheus-metrics-instrumentation-jvm:1.3.4")
implementation("io.prometheus:prometheus-metrics-exporter-httpserver:1.3.4")
// NOTE:
// We implicitly rely on Nabu's transitive dependency on Netty's public interfaces.
// We could explicitly include Netty ourselves, but we prefer to make sure we use the same version as Nabu.
// NOTE:
// For jitpack's syntax for GitHub version resolution, refer to: https://docs.jitpack.io/
// Nabu
// implementation("com.github.LimeChain:nabu:master-SNAPSHOT") // Uncomment for "most-recent on the master branch"
implementation("com.github.LimeChain:nabu:0.7.9")
//JSON-RPC
implementation("com.github.LimeChain:jsonrpc4j:1.7.0")
// Guava
implementation("com.google.guava:guava:33.3.1-jre")
// Apache commons
implementation("commons-io:commons-io:2.18.0")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
jvmArgs("-Dnet.bytebuddy.experimental=true")
}
tasks.getByName<Jar>("jar") {
enabled = false //To remove the build/libs/Fruzhin-ver-plain.jar
}