generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
119 lines (100 loc) · 2.81 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
118
119
plugins {
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'io.github.juuxel.loom-quiltflower' version '1.9.+'
}
repositories {
mavenLocal()
maven { url = "https://maven.shedaniel.me/" }
maven { url = "https://maven.siphalor.de" }
maven { url = "https://maven.terraformersmc.com/" }
maven { url = 'https://maven.quiltmc.org/repository/release' }
maven { url = 'https://maven.quiltmc.org/repository/snapshot' }
maven { url = "https://maven.parchmentmc.org" }
maven { url = "https://jitpack.io" }
maven { url = "https://mvn.devos.one/snapshots/" }
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
archivesBaseName = project.archives_base_name
version = "${libs.versions.version.get()}+build.${libs.versions.build.get()}-${libs.versions.minecraft.get()}"
group = project.maven_group
configurations.configureEach {
resolutionStrategy {
force("net.fabricmc.fabric-api:fabric-api:0.85.0+1.19.4")
force("net.fabricmc:fabric-loader:0.14.21")
}
}
dependencies {
minecraft libs.minecraft
mappings loom.layered {
it.mappings("org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2")
it.parchment("org.parchmentmc.data:parchment-1.19.4:${libs.versions.parchment.get()}@zip")
it.officialMojangMappings()
}
modImplementation libs.fabric.loader
modImplementation libs.fabric.api
modImplementation(libs.vampirelib)
include(libs.vampirelib)
modApi("com.terraformersmc:modmenu:6.2.3") {
exclude(group: "net.fabricmc.fabric-api")
}
modApi("me.shedaniel.cloth:cloth-config-fabric:10.1.105") {
exclude(group: "net.fabricmc.fabric-api")
}
modApi("io.github.vampirestudios:artifice:0.40.0+build.1-1.19.3-EXPERIMENTAL") {
exclude(group: "net.fabricmc.fabric-api")
}
}
processResources {
inputs.property 'version', version
filesMatching('fabric.mod.json') {
expand 'version': version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.encoding = 'UTF-8'
}
java {
withSourcesJar()
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.encoding = 'UTF-8'
}
compileJava {
options.compilerArgs += '--enable-preview'
}
publishing {
publications {
mavenJava( MavenPublication ) {
from components.java
}
}
repositories {
if (project.hasProperty("siphalorMavenUser")) {
maven {
name = "Siphalor"
url = "https://maven.siphalor.de/upload.php"
credentials {
username = siphalorMavenUser
password = siphalorMavenPassword
}
}
}
}
}
modrinth {
token = modrinthToken
projectId = "C7pWNmLQ"
versionNumber = project.version
versionType = "beta"
uploadFile = remapJar
gameVersions = [libs.versions.minecraft.get()]
loaders = ["fabric"]
dependencies {
required.project "P7dR8mSH"
}
}