-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
103 lines (79 loc) · 2.75 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
plugins {
kotlin("jvm")
id("fabric-loom")
`maven-publish`
java
}
group = property("maven_group")!!
version = property("mod_version")!!
repositories {
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots1"
mavenContent { snapshotsOnly() }
}
mavenCentral()
maven {
url = uri("https://cursemaven.com")
content {
includeGroup("curse.maven")
}
}
maven { url= uri("https://maven.nucleoid.xyz") }
maven("https://maven.impactdev.net/repository/development/")
maven {
url = uri("https://vault.roanoke.dev/releases")
}
maven("https://maven.nucleoid.xyz/") { name = "Nucleoid" }
maven { url= uri("https://oss.sonatype.org/content/repositories/snapshots") }
}
dependencies {
modImplementation("net.kyori:adventure-platform-fabric:5.9.0")!!
modImplementation("net.kyori:adventure-text-minimessage:4.14.0")!!
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
mappings("net.fabricmc:yarn:${property("yarn_mappings")}")
modImplementation("net.fabricmc:fabric-loader:${property("loader_version")}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${property("fabric_version")}")
implementation("cloud.commandframework", "cloud-core", "1.8.4")
implementation("net.impactdev.impactor.api:economy:5.1.1-SNAPSHOT")
modImplementation("eu.pb4:sgui:1.2.2+1.20")
modImplementation("dev.roanoke:rib:1.9.3")
modImplementation("com.cobblemon:fabric:1.5.0+1.20.1-SNAPSHOT")
modImplementation("net.luckperms:api:5.4")
modImplementation("eu.pb4:placeholder-api:2.1.3+1.20.1")!!
modImplementation("me.lucko:fabric-permissions-api:0.2-SNAPSHOT")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(mutableMapOf("version" to project.version))
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(remapJar) {
builtBy(remapJar)
}
artifact(kotlinSourcesJar) {
builtBy(remapSourcesJar)
}
}
}
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
// configure the maven publication