Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
114 lines (108 loc) · 3.4 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
114 lines (108 loc) · 3.4 KB
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
plugins {
id("sf.java-conventions")
idea
id("fabric-loom")
}
allprojects {
group = "com.soulfiremc"
version = "1.0.0-SNAPSHOT"
description = "Example of how to make a plugin for SoulFire."
repositories {
maven("https://repo.viaversion.com") {
name = "ViaVersion Repository"
content {
includeGroup("com.viaversion")
includeGroup("com.viaversion.mcstructs")
includeGroup("net.raphimc")
}
}
maven("https://jitpack.io") {
name = "Jitpack Repository"
content {
includeGroupByRegex("com\\.github\\..*")
}
}
maven("https://libraries.minecraft.net") {
name = "Minecraft Repository"
content {
includeGroup("net.minecraft")
includeGroup("com.mojang")
}
}
maven("https://nexus.lucko.me/repository/hosted/") {
name = "Lucko Nexus"
content {
includeGroup("me.lucko")
includeModule("net.kyori", "adventure-text-feature-pagination")
}
}
maven("https://maven.parchmentmc.org") {
name = "ParchmentMC"
content {
includeGroup("org.parchmentmc.data")
}
}
maven("https://maven.fabricmc.net") {
name = "FabricMC"
content {
includeGroup("net.fabricmc")
}
}
ivy("https://github.com/3arthqu4ke") {
patternLayout {
artifact("/[organisation]/releases/download/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
}
metadataSources {
artifact()
}
content {
includeGroup("headlessmc")
}
}
maven("https://central.sonatype.com/repository/maven-snapshots/") {
name = "Sonatype Snapshot Repository"
mavenContent { snapshotsOnly() }
}
maven("https://maven.lenni0451.net/everything") {
name = "Lenni0451 Repository"
content {
includeGroup("net.raphimc")
}
}
maven("https://repo.opencollab.dev/maven-snapshots") {
name = "OpenCollab Snapshot Repository"
content {
includeGroup("org.cloudburstmc.netty")
}
}
maven("https://repo.codemc.org/repository/maven-public/") {
name = "CodeMC Repository"
content {
includeGroup("com.soulfiremc")
}
}
mavenCentral()
}
}
loom {
accessWidenerPath = file("src/main/resources/soulfire-plugin-example.accesswidener")
// Disable run configurations as this is a plugin, not a standalone mod
runs {
removeIf { true }
}
}
// libs are declared in gradle/libs.versions.toml
dependencies {
minecraft(libs.minecraft)
@Suppress("UnstableApiUsage")
mappings(loom.layered {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${libs.versions.parchmentMc.get()}:${libs.versions.parchment.get()}@zip")
})
modImplementation(libs.fabric.loader)
modImplementation(libs.soulfire.mod)
compileOnly(libs.soulfire.shared)
// For code generation
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
}