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 2
/
build.gradle.kts
62 lines (47 loc) · 1.65 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm") version "1.8.21"
kotlin("plugin.serialization") version "1.8.21"
id("com.github.johnrengelman.shadow") version "7.1.2"
java
}
repositories {
mavenCentral()
mavenLocal()
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.hollow-cube:Minestom:d5c92066ce")
// implementation("com.github.EmortalMC:Immortal:bb0a38dc47")
implementation("dev.emortal.immortal:Immortal:3.0.1")
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("com.github.EmortalMC:Acquaintance:73e756e516")
}
tasks {
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set(project.name)
mergeServiceFiles()
manifest {
attributes (
"Main-Class" to "dev.emortal.marathon.MarathonMainKt",
"Multi-Release" to true
)
}
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer::class.java)
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
build { dependsOn(shadowJar) }
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}