-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
62 lines (50 loc) · 1.6 KB
/
build.gradle
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
plugins {
id "fabric-loom" version "1.7-SNAPSHOT"
id "com.modrinth.minotaur" version "2.+"
}
repositories {
maven { url "https://maven.shedaniel.me" }
maven { url "https://maven.terraformersmc.com/releases" }
}
dependencies {
minecraft "com.mojang:minecraft:1.21.3"
mappings "net.fabricmc:yarn:1.21.3+build.2:v2"
modImplementation "net.fabricmc:fabric-loader:0.16.7"
modApi "com.terraformersmc:modmenu:12.0.0-beta.1"
modLocalRuntime "net.fabricmc.fabric-api:fabric-api:0.106.1+1.21.3"
modApi("me.shedaniel.cloth:cloth-config-fabric:16.0.141") {
exclude(group: "net.fabricmc.fabric-api")
}
}
def modVersion = "1.2.0"
base.archivesName = "no-peeking-" + modVersion
def javaVersion = JavaVersion.VERSION_17
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
jar.from("LICENSE.txt")
processResources {
filesMatching("fabric.mod.json") {
expand "version": modVersion
}
}
modrinth {
token = System.getenv("MINOTAUR_PAT")
syncBodyFrom = rootProject.file("modrinth/readme.md").text
uploadFile = remapJar
projectId = "nopeeking"
changelog = rootProject.file("modrinth/changelog.md").text
versionName = "No Peeking " + modVersion
versionNumber = modVersion
gameVersions = ["1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4"]
loaders = ["fabric"]
dependencies {
required.project "cloth-config"
optional.project "modmenu"
}
}
task modrinthUpload {
dependsOn "modrinth"
dependsOn "modrinthSyncBody"
}