-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
executable file
·121 lines (92 loc) · 3.73 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
113
114
115
116
117
118
119
120
121
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
id("com.github.johnrengelman.shadow") version "6.1.0"
id("me.qoomon.git-versioning") version "5.1.1"
}
group = "network.warzone.mars"
val majorVersion = "1.0-SNAPSHOT"
version = majorVersion
gitVersioning.apply {
refs {
branch(".+") {
version = "${project.version}-\${ref}-\${commit.short}"
}
}
// fallback configuration in case of no matching ref configuration
rev {
version = "${project.version}-\${commit.short}"
}
}
repositories {
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots"
}
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://jitpack.io")
maven("https://repo.aikar.co/nexus/content/groups/aikar/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://m2.dv8tion.net/releases/")
maven("https://nexus.scarsz.me/content/groups/public")
maven("https://libraries.minecraft.net")
maven("https://repo.pgm.fyi/snapshots")
}
dependencies {
// https://mvnrepository.com/artifact/com.google.code.gson/gson
//implementation("com.google.code.gson:gson:2.8.2")
implementation("net.time4j:time4j-base:5.8")
implementation("net.time4j:time4j-sqlxml:5.8")
implementation("net.time4j:time4j-tzdata:5.0-2020a")
compileOnly("app.ashcon:sportpaper:1.8.8-R0.1-SNAPSHOT")
implementation("com.github.Electroid.Intake:intake-bukkit:v1.2.1")
compileOnly("tc.oc.pgm:core:0.16-SNAPSHOT") {
exclude(group = "fr.mrmicky", module = "FastBoard")
}
compileOnly("fr.mrmicky:fastboard:1.2.0")
compileOnly("com.discordsrv:discordsrv:1.24.0")
compileOnly("net.kyori:adventure-api:4.8.1")
compileOnly("net.kyori:adventure-text-serializer-plain:4.8.1")
implementation("net.kyori:adventure-platform-bukkit:4.3.0") {
exclude(group = "org.spigotmc", module = "spigot-api")
}
implementation("net.wesjd:anvilgui:1.5.3-SNAPSHOT")
// compileOnly("me.lucko:adventure-platform-bukkit:4.0.0") {
// exclude(group = "org.spigotmc", module = "spigot-api")
// }
val ktorVersion = "1.6.2"
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-gson:$ktorVersion")
implementation("io.ktor:ktor-client-auth:$ktorVersion")
implementation("com.squareup.okhttp3:okhttp:4.9.1")
implementation("com.tinder.scarlet:scarlet:0.1.12")
implementation("com.tinder.scarlet:websocket-okhttp:0.1.12")
implementation("com.tinder.scarlet:message-adapter-gson:0.1.12")
implementation("com.tinder.scarlet:stream-adapter-rxjava2:0.1.12")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.21")
implementation(kotlin("stdlib-jdk8"))
implementation("com.github.kittinunf.result:result-jvm:5.1.0")
}
tasks.withType<ShadowJar> {
// minimize()
manifest {
attributes["Main-Class"] = "network.warzone.mars.MarsKt"
}
archiveBaseName.set("Mars")
archiveVersion.set("$majorVersion")
filesMatching("**/plugin.yml") {
expand("version" to project.version)
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<Jar> {
// dependsOn(project.tasks.shadowJar)
}