-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (62 loc) · 2.02 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
plugins {
id "fabric-loom" version "0.4-SNAPSHOT"
id "java"
id "idea"
//id "com.wynprice.cursemaven" version "2.1.1"
}
//version = "${minecraft_version}-" + "${version}"
version = "${version}+fabric-${minecraft_version}"
group = "${group}"
archivesBaseName = "${archive}"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
minecraft {
accessWidener "src/main/resources/emojiful.accesswidener"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
minecraft("com.mojang:minecraft:${minecraft_version}")
mappings("net.fabricmc:yarn:${minecraft_version}+build.${mappings_build}:v2")
modImplementation("net.fabricmc:fabric-loader:${loader_version}")
include modApi("com.esotericsoftware.yamlbeans:yamlbeans:1.13")
modImplementation(fabricApi.module("fabric-textures-v0", "0.17.0+build.386-1.16.1"))
modImplementation(fabricApi.module("fabric-api-base", "0.17.0+build.386-1.16.1"))
}
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
jar {
manifest {
attributes([
"Specification-Title" : "${title}",
"Specification-Vendor" : "${team}",
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : "${project.version}",
"Implementation-Vendor" : "${team}",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"ModSide": "BOTH",
],)
}
}