-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
140 lines (118 loc) · 3.53 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
plugins {
base
java
`maven-publish`
alias(libs.plugins.fabric.loom)
id("org.jetbrains.kotlin.jvm") version "1.8.0"
}
group = libs.versions.maven.group.get()
version = libs.versions.modpack.get()
base {
archivesName.set(libs.versions.archives.name)
}
repositories {
maven {
name = "Modrinth Maven"
url = uri("https://api.modrinth.com/maven")
content {
includeGroup("maven.modrinth")
}
}
maven {
name = "JitPack"
url = uri("https://jitpack.io/")
}
maven {
url = uri("https://maven.ladysnake.org/releases")
content {
includeGroup("io.github.ladysnake")
includeGroup("org.ladysnake")
includeGroupByRegex("dev\\.onyxstudios.*")
}
}
maven {
url = uri("https://maven.jamieswhiteshirt.com/libs-release")
content {
includeGroup("com.jamieswhiteshirt")
}
}
maven { url = uri("https://maven.quiltmc.org/repository/release") }
maven { url = uri("https://mvn.devos.one/snapshots/") }
maven { url = uri("https://maven.saps.dev/releases/") }
maven { url = uri("https://aperlambda.github.io/maven") }
maven { url = uri("https://dvs1.progwml6.com/files/maven") }
maven { url = uri("https://maven.cafeteria.dev/releases") }
maven { url = uri("https://maven.fabricmc.net") }
maven { url = uri("https://maven.gegy.dev") }
maven { url = uri("https://maven.kotlindiscord.com/repository/terraformers") }
maven { url = uri("https://maven.parchmentmc.org") }
maven { url = uri("https://maven.shedaniel.me") }
maven { url = uri("https://maven.terraformersmc.com/releases") }
maven { url = uri("https://maven.tterrag.com") }
maven { url = uri("https://maven.wispforest.io") }
maven { url = uri("https://modmaven.dev") }
maven { url = uri("https://storage.googleapis.com/devan-maven") }
mavenCentral()
}
dependencies {
// Minecraft
minecraft(libs.minecraft)
// Mappings
mappings(
variantOf(libs.quilt.mappings) { classifier("intermediary-v2") }
)
// Fabric
modImplementation(libs.fabric.loader)
modImplementation(libs.fabric.api)
// Implemented Mods
modImplementation(libs.bundles.mods.from.dmearth)
modImplementation(libs.bundles.mods.from.alphamode) { exclude(group = "com.github.AlphaMode") }
modImplementation(libs.bundles.mods.from.ftb)
modImplementation(libs.bundles.maven.modrinth)
modImplementation(libs.bundles.maven.jitpack)
modApi(libs.modmenu)
modApi(libs.cloth.config)
modApi(libs.rei)
// Included
modApi(libs.tags.binder)?.let {
include(it)
}
modApi(libs.brrp)?.let {
include(it)
}
api(libs.exp4j)?.let {
include(it)
}
// Development
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
tasks {
processResources {
inputs.property("version", libs.versions.modpack.get())
filesMatching("fabric.mod.json") {
expand(mapOf("version" to libs.versions.modpack.get()))
}
}
jar {
from("LICENSE") {
rename { "${it}_${base.archivesName}" }
}
}
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
loom {
accessWidenerPath.set(file("src/main/resources/cabricality.accesswidener"))
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
repositories {
}
}