forked from Johni0702/fade-in-chunks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (55 loc) · 1.3 KB
/
build.gradle.kts
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
plugins {
id("fabric-loom") version "0.6-SNAPSHOT"
id("maven-publish")
}
val modVersion: String by project
val mavenGroup: String by project
version = modVersion
group = mavenGroup
val sodiumVersion: String by project
dependencies {
val minecraftVersion: String by project
val yarnMappings: String by project
val loaderVersion: String by project
minecraft("com.mojang:minecraft:${minecraftVersion}")
mappings("net.fabricmc:yarn:${yarnMappings}:v2")
modImplementation("net.fabricmc:fabric-loader:${loaderVersion}")
modImplementation("com.github.CaffeineMC:sodium-fabric:${sodiumVersion}")
}
tasks.processResources {
inputs.property("version", modVersion)
filesMatching("fabric.mod.json") {
expand(mutableMapOf(
"version" to modVersion
))
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
tasks.withType<AbstractArchiveTask> {
val archivesBaseName: String by project
archiveBaseName.set(archivesBaseName)
}
tasks.jar {
from("LICENSE.md")
from("LICENSE.LESSER.md")
}
publishing {
publications {
create("mavenJava", MavenPublication::class.java) {
artifact(tasks.remapJar) {
builtBy(tasks.remapJar)
}
}
}
}
repositories {
maven("https://jitpack.io") {
content {
includeGroup("com.github.CaffeineMC")
}
}
}