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 17
/
build.gradle
101 lines (84 loc) · 2.47 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
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.2-SNAPSHOT'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
}
apply plugin: 'de.guntram.mcmod.crowdin-translate'
crowdintranslate.crowdinProjectName = 'antighost'
crowdintranslate.minecraftProjectName = 'antighost'
crowdintranslate.verbose = false
repositories {
maven {
url = "https://maven.fabricmc.net"
}
maven {
url = "https://minecraft.guntram.de/maven/"
}
maven {
url = "https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu/"
}
}
sourceCompatibility = 17
targetCompatibility = 17
ext.Versions = new Properties()
Versions.load(file("Versionfiles/mcversion-1.20.4.properties").newReader())
archivesBaseName = "antighost"
ext.projectVersion = "1.1.5"
version = "${Versions['minecraft_version']}-fabric${Versions['fabric_versiononly']}-${project.projectVersion}"
loom {
mixin.defaultRefmapName = "AntiGhost-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 "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
include "de.guntram.mcmod:crowdin-translate:${Versions['crowdintranslate_version']}"
}
java {
withSourcesJar()
}
jar {
from "LICENSE"
}
processResources {
dependsOn downloadTranslations
}
import com.modrinth.minotaur.TaskModrinthUpload
modrinth {
projectId = 'antighost'
versionName = 'antighost'
uploadFile = remapJar
}
curseforge {
apiKey = System.getenv("CURSEFORGE_TOKEN") ?: "0"
project {
id = '273279'
releaseType = 'release'
addGameVersion("${Versions['minecraft_version']}")
addGameVersion("Java "+targetCompatibility)
addGameVersion("Fabric")
mainArtifact(remapJar)
}
options {
forgeGradleIntegration = false
}
}