-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (54 loc) · 1.68 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
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
}
sourceCompatibility = JavaLanguageVersion.of(java_version as int)
targetCompatibility = JavaLanguageVersion.of(java_version as int)
archivesBaseName = archives_base_name
version = mod_version
group = maven_group
repositories {
mavenCentral()
maven {
name = "henkelmax.public"
url = 'https://maven.maxhenkel.de/repository/public'
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
mavenLocal()
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation "de.maxhenkel.voicechat:voicechat-api:${voicechat_api_version}"
modRuntimeOnly "maven.modrinth:simple-voice-chat:fabric-${voicechat_dependency}"
}
processResources {
inputs.property "version", version
filesMatching("fabric.mod.json") {
expand "version": mod_version,
"java_version": java_version,
"minecraft_dependency": minecraft_dependency,
"loader_version": loader_version,
"fabric_version": fabric_version,
"voicechat_dependency": voicechat_dependency
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = java_version as int
}
java {
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}