-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (67 loc) · 2.74 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import java.text.SimpleDateFormat
import java.util.*
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.sonarqube") version "5.0.0.4638"
}
group = "xyz.sorridi.arc"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://repo.spring.io/plugins-release/")
}
}
val junitBomVersion = "5.10.3"
val sparkJavaVersion = "2.9.4"
val slf4jVersion = "2.0.16"
val jettyWebsocketVersion = "9.4.55.v20240627"
val bucket4jVersion = "8.10.1"
val bouncycastleVersion = "1.78.1"
val commonsCodecVersion = "1.17.1"
val commonsCliVersion = "1.8.0"
val commonsLang3Version = "3.16.0"
val commonsTextVersion = "1.12.0"
val gsonVersion = "2.11.0"
val lombokVersion = "1.18.34"
val annotationsVersion = "24.1.0"
dependencies {
testImplementation(platform("org.junit:junit-bom:$junitBomVersion"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("com.sparkjava:spark-core:$sparkJavaVersion")
implementation("org.slf4j:slf4j-nop:$slf4jVersion")
implementation("org.eclipse.jetty.websocket:websocket-server:$jettyWebsocketVersion")
implementation("com.bucket4j:bucket4j-core:$bucket4jVersion")
implementation("org.bouncycastle:bcpkix-jdk18on:$bouncycastleVersion")
implementation("commons-codec:commons-codec:$commonsCodecVersion")
implementation("commons-cli:commons-cli:$commonsCliVersion")
implementation("org.apache.commons:commons-lang3:$commonsLang3Version")
implementation("org.apache.commons:commons-text:$commonsTextVersion")
implementation("com.google.code.gson:gson:$gsonVersion")
/* Annotations related. */
compileOnly("org.projectlombok:lombok:$lombokVersion")
compileOnly("org.jetbrains:annotations:$annotationsVersion")
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<ShadowJar> {
archiveFileName.set("${project.name}-${project.version}.jar")
manifest {
attributes(
"Main-Class" to "xyz.sorridi.arc.Main",
"Built-By" to System.getProperty("user.name"),
"Build-Timestamp" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(Date()),
"Created-By" to "Gradle ${gradle.gradleVersion}",
"Build-Jdk" to "${System.getProperty("java.version")} (${System.getProperty("java.vendor")} ${
System.getProperty(
"java.vm.version"
)
})",
"Build-OS" to "${System.getProperty("os.name")} ${System.getProperty("os.arch")} ${System.getProperty("os.version")}"
)
}
}