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