-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
113 lines (96 loc) · 3.55 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.tasks.testing.logging.TestLogEvent
import java.net.URI
fun properties(key: String) = project.findProperty(key).toString()
group = properties("libraryGroup")
version = properties("libraryVersion")
plugins {
java
`java-library`
`maven-publish`
id("signing")
id("com.github.johnrengelman.shadow") version "7.1.2"
id("org.jetbrains.kotlin.jvm") version "1.7.21"
}
repositories {
mavenCentral {
metadataSources {
mavenPom()
artifact()
}
}
}
kotlin {
jvmToolchain(11)
// jvmToolchain(17)
}
val kotlin_version = "1.7.21"
val jetty_version = "11.0.15"
val scala_version = "2.13.8"
val skyenet_version = "1.0.14"
dependencies {
implementation(group = "com.simiacryptus", name = "joe-penai", version = "1.0.15")
implementation(group = "com.simiacryptus.skyenet", name = "util", version = skyenet_version)
implementation(group = "com.simiacryptus.skyenet", name = "core", version = skyenet_version)
implementation(group = "com.simiacryptus.skyenet", name = "groovy", version = skyenet_version)
implementation(group = "com.simiacryptus.skyenet", name = "scala", version = skyenet_version)
implementation(group = "com.simiacryptus.skyenet", name = "webui", version = skyenet_version)
implementation(group = "org.eclipse.jetty", name = "jetty-server", version = jetty_version)
implementation(group = "org.eclipse.jetty.websocket", name = "websocket-jetty-server", version = jetty_version)
implementation(group = "org.eclipse.jetty", name = "jetty-webapp", version = jetty_version)
implementation(group = "commons-io", name = "commons-io", version = "2.11.0")
implementation(group = "com.vladsch.flexmark", name = "flexmark-all", version = "0.64.8")
implementation(group = "com.amazonaws", name = "aws-java-sdk", version = "1.12.454")
implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.5")
implementation(group = "ch.qos.logback", name = "logback-classic", version = "1.2.9")
implementation(group = "ch.qos.logback", name = "logback-core", version = "1.2.9")
}
tasks.withType(ShadowJar::class.java).configureEach {
archiveClassifier.set("")
mergeServiceFiles()
append("META-INF/kotlin_module")
}
tasks {
compileKotlin {
kotlinOptions {
javaParameters = true
}
}
compileTestKotlin {
kotlinOptions {
javaParameters = true
}
}
test {
useJUnitPlatform()
systemProperty("surefire.useManifestOnlyJar", "false")
testLogging {
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
jvmArgs(
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED"
)
}
wrapper {
gradleVersion = properties("gradleVersion")
}
}
tasks.withType(ShadowJar::class.java).configureEach {
isZip64 = true
archiveClassifier.set("")
mergeServiceFiles()
append("META-INF/kotlin_module")
exclude("**/META-INF/*.SF")
exclude("**/META-INF/*.DSA")
exclude("**/META-INF/*.RSA")
exclude("**/META-INF/*.MF")
exclude("META-INF/versions/9/module-info.class")
manifest {
attributes(
"Main-Class" to "com.simiacryptus.skyenet.MultipathServer"
)
}
}