forked from Blayung/no-peeking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (50 loc) · 1.56 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.1"
mappings "net.fabricmc:yarn:1.21.1+build.3:v2"
modImplementation "net.fabricmc:fabric-loader:0.16.5"
modApi "com.terraformersmc:modmenu:11.0.2"
modLocalRuntime "net.fabricmc.fabric-api:fabric-api:0.106.0+1.21.1"
modApi("me.shedaniel.cloth:cloth-config-fabric:15.0.140") {
exclude(group: "net.fabricmc.fabric-api")
}
}
def modVersion = "1.1.3"
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"]
loaders = ["fabric"]
dependencies {
required.project "cloth-config"
optional.project "modmenu"
}
}
task modrinthUpload {
dependsOn "modrinth"
dependsOn "modrinthSyncBody"
}