forked from End-Tech/syncmatica
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
61 lines (48 loc) · 2.05 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
plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
}
//sourceCompatibility = JavaVersion.VERSION_21
//targetCompatibility = JavaVersion.VERSION_21
repositories {
maven { url 'https://masa.dy.fi/maven' }
maven { url 'https://maven.terraformersmc.com/releases/' }
maven { url 'https://jitpack.io' }
}
group = project.maven_group + "." + project.mod_id
base.archivesName = project.mod_file_name + '-' + project.minecraft_version_out
version = project.mod_version
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.mappings_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
implementation "com.google.code.findbugs:jsr305:3.0.2"
//modImplementation "curse.maven:litematica-${project.minecraft_version_out}-308892:${project.litematica_fileid}"
//modImplementation "curse.maven:malilib-${project.minecraft_version_out}-303119:${project.malilib_fileid}"
//modImplementation "fi.dy.masa.malilib:malilib-fabric-${project.minecraft_version_out}:${project.malilib_version}"
//modImplementation "fi.dy.masa.litematica:litematica-fabric-${project.minecraft_version_out}:${project.litematica_version}"
modImplementation "com.github.sakura-ryoko:malilib:${project.malilib_version}"
modImplementation "com.github.sakura-ryoko:litematica:${project.litematica_version}"
include(modApi(fabricApi.module("fabric-networking-api-v1", project.fabric_api_version)))
include(modApi(fabricApi.module("fabric-resource-loader-v0", project.fabric_api_version)))
modCompileOnly "com.terraformersmc:modmenu:${project.mod_menu_version}"
}
processResources {
exclude '**/*.xcf'
exclude '**/xcf'
inputs.property "mod_version", project.mod_version
filesMatching("fabric.mod.json") {
expand "mod_version": project.mod_version
}
}
jar {
from("LICENSE") {
rename { "${it}_${base.archivesName}"}
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = true
}