This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
85 lines (71 loc) · 2.17 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
}
repositories {
maven {
url = "file://tmp/mymavenrepo/"
}
maven {
url = "https://maven.fabricmc.net"
}
maven {
url = "https://minecraft.guntram.de/maven/"
}
maven {
url = "https://maven.terraformersmc.com/releases/"
}
maven { url "https://maven.shedaniel.me/" }
}
sourceCompatibility = 17
targetCompatibility = 17
ext.Versions = new Properties()
Versions.load(file("Versionfiles/mcversion-1.20.4.properties").newReader())
archivesBaseName = "easiervillagertrading"
ext.projectVersion = "1.5.4"
version = "${Versions['minecraft_version']}-fabric${Versions['fabric_versiononly']}-${project.projectVersion}"
loom {
mixin.defaultRefmapName = "EasierVillagerTrading-refmap.json";
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
dependencies {
minecraft "com.mojang:minecraft:${Versions['minecraft_version']}"
mappings "net.fabricmc:yarn:${Versions['yarn_mappings']}:v2"
modImplementation "net.fabricmc:fabric-loader:${Versions['loader_version']}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${Versions['fabric_version']}"
modImplementation "com.terraformersmc:modmenu:${Versions['modmenu_version']}"
modImplementation "de.guntram.mcmod:GBfabrictools:${Versions['gbfabrictools_version']}"
include "de.guntram.mcmod:GBfabrictools:${Versions['gbfabrictools_version']}"
}
java {
withSourcesJar()
}
jar {
from "LICENSE"
}
import com.modrinth.minotaur.TaskModrinthUpload
modrinth {
projectId = 'easiervillagertrading'
versionName = project.archivesBaseName
uploadFile = remapJar
}
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN") ?: "0"
project {
id = '261605'
releaseType = 'release'
addGameVersion("${Versions['minecraft_version']}")
addGameVersion("Java "+targetCompatibility)
addGameVersion("Fabric")
mainArtifact(remapJar)
}
options {
forgeGradleIntegration = false
}
}