This repository has been archived by the owner on Jun 4, 2023. It is now read-only.
generated from Project-Cepi/ExampleExtension
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
90 lines (70 loc) · 2.41 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.0"
kotlin("plugin.serialization") version "1.8.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
`maven-publish`
java
}
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
compileOnly("com.github.hollow-cube:Minestom:d5c92066ce")
testImplementation("com.github.hollow-cube:Minestom:6524476a81")
// Util
// api("com.github.EmortalMC:KStom:50b2b882fa")
api("com.github.emortaldev:Particable:f7212f39fb")
api("com.github.EmortalMC:rayfast:9e5accbdfd")
api("net.kyori:adventure-text-minimessage:4.12.0")
// DB
api("redis.clients:jedis:4.3.1")
api("org.litote.kmongo:kmongo-coroutine-serialization:4.8.0")
api("org.litote.kmongo:kmongo-id:4.8.0")
implementation("ch.qos.logback:logback-core:1.4.5")
implementation("ch.qos.logback:logback-classic:1.4.5")
compileOnly("space.vectrix.flare:flare:2.0.1")
compileOnly("space.vectrix.flare:flare-fastutil:2.0.1")
// Kotlin
testImplementation(kotlin("test"))
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("immortal")
mergeServiceFiles()
//minimize()
dependencies {
//exclude(dependency("com.github.emortaldev:Particable"))
//exclude(dependency("com.github.emortaldev:Kstom"))
}
}
build {
dependsOn(shadowJar)
}
test {
useJUnitPlatform()
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.properties["group"] as? String?
artifactId = project.name
version = project.properties["version"] as? String?
from(components["java"])
}
}
}