-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
72 lines (55 loc) · 2.53 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
72 lines (55 loc) · 2.53 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")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.google.osdetector") version "1.7.3"
}
group = "me.thiagorigonatti"
version = "0.0.10"
description =
"A lightweight sub-millisecond p99 latency ultra high-performance non-blocking I/O io_uring and unix-domain-sockets compatible HTTP1/2 server module with easy TLS integration support."
repositories {
mavenCentral()
}
val os = the<com.google.gradle.osdetector.OsDetector>()
dependencies {
implementation("io.netty:netty-all:4.2.6.Final")
implementation("io.netty:netty-tcnative-boringssl-static:2.0.73.Final:${os.classifier}")
implementation("org.apache.logging.log4j:log4j-api:2.25.2")
implementation("org.apache.logging.log4j:log4j-core:2.25.2")
implementation("org.bouncycastle:bcprov-jdk18on:1.82")
implementation("org.bouncycastle:bcpkix-jdk18on:1.82")
implementation("org.bouncycastle:bctls-jdk18on:1.82")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.0")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("jakarta.validation:jakarta.validation-api:3.1.1")
testImplementation("org.postgresql:r2dbc-postgresql:1.0.7.RELEASE")
testImplementation("io.r2dbc:r2dbc-spi:1.0.0.RELEASE")
testImplementation("io.r2dbc:r2dbc-pool:1.0.2.RELEASE")
}
tasks.register<Exec>("runSleekerTestNamed") {
group = "application"
description = "Roda a classe de teste com nome de processo customizado (Linux only)"
dependsOn(tasks.testClasses)
commandLine = listOf(
"bash", "-c",
"exec -a SleekerTest java -Dio.netty.allocator.type=pooled -Dio.netty.allocator.maxOrder=1 -Xms16m -Xmx32m -XX:MaxMetaspaceSize=32m -XX:CompressedClassSpaceSize=4m -XX:+UseSerialGC -XX:-UseStringDeduplication -Xss256k -XX:+ExitOnOutOfMemoryError -noverify -Djava.awt.headless=true -XX:+UseCompressedOops -cp ${sourceSets["test"].runtimeClasspath.asPath} me.thiagorigonatti.sleeker.SleekerServerTest"
)
}
tasks.shadowJar {
exclude("me/thiagorigonatti/sleeker/aaa_dev_test/**")
archiveClassifier.set("all")
archiveFileName.set("${archiveBaseName.get()}-${version}-${archiveClassifier.get()}-${os.classifier}.jar")
}
tasks.withType<Jar> {
manifest.attributes["Main-Class"] = "me.thiagorigonatti.sleeker.aaa_dev_test.Test"
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}