1
- import dev.kordex.gradle.plugins.kordex.DataCollection
2
1
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
3
5
4
plugins {
6
5
id(" fabric-loom" ) version " 1.10-SNAPSHOT"
7
6
id(" maven-publish" )
8
7
id(" org.jetbrains.kotlin.jvm" ) version " 2.1.21"
9
- id(" dev.kordex.gradle.kordex " ) version " 1.6.1 "
8
+ id(" com.gradleup.shadow " ) version " 9.0.0-beta15 "
10
9
}
11
10
12
11
version = property(" mod_version" ).toString()
@@ -27,6 +26,20 @@ repositories {
27
26
maven(" https://maven.enjarai.dev/releases" )
28
27
maven(" https://maven.nucleoid.xyz" )
29
28
maven(" https://api.modrinth.com/maven" )
29
+ maven {
30
+ name = " KordEx (Releases)"
31
+ url = uri(" https://repo.kordex.dev/releases" )
32
+ }
33
+
34
+ maven {
35
+ name = " KordEx (Snapshots)"
36
+ url = uri(" https://repo.kordex.dev/snapshots" )
37
+ }
38
+
39
+ maven {
40
+ name = " Kord (Snapshots)"
41
+ url = uri(" https://repo.kord.dev/snapshots/" )
42
+ }
30
43
}
31
44
32
45
loom {
@@ -40,8 +53,10 @@ loom {
40
53
41
54
}
42
55
56
+ val kordexVersion: String = property(" kordex_version" ) as String
57
+
43
58
dependencies {
44
- minecraft(" com.mojang:minecraft:${property(" minecraft_version" )} " )
59
+ minecraft(" com.mojang:minecraft:${property(" minecraft_version" )} " ) {}
45
60
mappings(" net.fabricmc:yarn:${property(" yarn_mappings" )} :v2" )
46
61
modImplementation(" net.fabricmc:fabric-loader:${property(" loader_version" )} " )
47
62
@@ -54,16 +69,11 @@ dependencies {
54
69
// Monkey Utils
55
70
modImplementation(" maven.modrinth:uApL7Qhc:${property(" monkey_utils_version" )} " )
56
71
57
-
72
+ // Fabric Permissions API
58
73
include(modImplementation(" me.lucko:fabric-permissions-api:0.3.1" )!! )
59
- }
60
74
61
- kordEx {
62
- jvmTarget = 21
63
- bot {
64
- dataCollection(DataCollection .Standard )
65
- mainClass = " io.github.arkosammy12.compsmpdiscordbot.CompSMPDiscordBot"
66
- }
75
+ // Kordex
76
+ include(implementation(" dev.kordex:kord-extensions:${kordexVersion} " )!! )
67
77
}
68
78
69
79
tasks.processResources {
@@ -84,6 +94,12 @@ tasks.withType<KotlinCompile>().configureEach {
84
94
}
85
95
}
86
96
97
+ tasks.shadowJar {
98
+ isZip64 = true
99
+ exclude(" net/fabricmc/language/kotlin/**" )
100
+ exclude(" fabric-language-kotlin-*.jar" )
101
+ }
102
+
87
103
java {
88
104
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
89
105
// if it is present.
0 commit comments