generated from LunarCoreMods/ModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.31 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
plugins {
id "java"
id "io.github.lunarcoremods.gradlerunner" version "724fd81236"
}
version = project.mod_version
group = project.maven_group
repositories {
maven {
url = "https://maven.fabricmc.net/"
}
maven {
url = "https://repo.spongepowered.org/repository/maven-public"
}
maven {
url = "https://jitpack.io"
}
}
dependencies {
// TODO: use gameprovider_version
gameprovider "com.github.LunarCore-Mods:GameProvider:7026b233da"
// TODO: use lunarcore_version
lunarcore "com.github.Melledy:LunarCore:development-SNAPSHOT"
implementation "org.spongepowered:mixin:${project.mixin_version}"
annotationProcessor "org.spongepowered:mixin:${project.mixin_version}:processor"
implementation "io.github.llamalad7:mixinextras-common:0.3.5"
}
processResources {
def properties = [
version: project.version,
lunarcore_version: lunarcore_version,
loader_version: loader_version
]
inputs.properties properties
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand properties
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
jar {
archiveBaseName.set(archives_base_name)
from("LICENSE") {
rename { "${it}_${archives_base_name}"}
}
}