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 28
/
build.gradle
117 lines (99 loc) · 3.29 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
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
buildscript {
dependencies {
classpath 'de.guntram.mcmod:crowdin-translate:1.4+1.19-pre2'
}
repositories {
maven {
name = 'CrowdinTranslate source'
url = "https://minecraft.guntram.de/maven/"
}
}
}
plugins {
id 'fabric-loom' version '1.3-SNAPSHOT'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
}
apply plugin: 'de.guntram.mcmod.crowdin-translate'
crowdintranslate.crowdinProjectName = 'durabilityviewer'
crowdintranslate.verbose = false
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 {
name = "Ladysnake Libs"
url = "https://maven.ladysnake.org/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 = "durabilityviewer"
ext.projectVersion = "1.10.5"
version = "${Versions['minecraft_version']}-fabric${Versions['fabric_versiononly']}-${project.projectVersion}"
loom {
mixin.defaultRefmapName = "DurabilityViewer-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 "TechReborn:TechReborn-1.16:3.4.5+build.95"
modImplementation "com.terraformersmc:modmenu:${Versions['modmenu_version']}"
modImplementation "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
include "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
modImplementation "de.guntram.mcmod:GBfabrictools:${Versions['gbfabrictools_version']}"
include "de.guntram.mcmod:GBfabrictools:${Versions['gbfabrictools_version']}"
modImplementation "dev.emi:trinkets:3.8.0"
// these two are only needed due to a bug in the trinkets build.gradle, remove them later -- 20230629
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:5.3.0")
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:5.3.0")
}
java {
withSourcesJar()
}
processResources {
dependsOn downloadTranslations
}
jar {
from "LICENSE"
}
import com.modrinth.minotaur.TaskModrinthUpload
modrinth {
projectId = 'durabilityviewer'
versionName = project.archivesBaseName
uploadFile = remapJar
}
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN") ?: "0"
project {
id = '262146'
releaseType = 'release'
addGameVersion("${Versions['minecraft_version']}")
addGameVersion("Java "+targetCompatibility)
addGameVersion("Fabric")
mainArtifact(remapJar)
}
options {
forgeGradleIntegration = false
}
}