forked from Flamarine/BTAExampleMod-babric
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
68 lines (57 loc) · 1.45 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
plugins {
id 'babric-loom' version '1.0.+'
id 'java'
}
group = project.maven_group
archivesBaseName = project.archives_base_name
version = project.mod_version
loom {
gluedMinecraftJar()
noIntermediateMappings()
customMinecraftManifest.set("https://github.com/azurelmao/bta-manifest-repo/releases/download/v1.7.6.2_02/1.7.6.2_02.json")
}
repositories {
mavenCentral()
maven {
name = 'Babric'
url = 'https://maven.glass-launcher.net/babric'
}
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
ivy {
url = "https://github.com/Better-than-Adventures"
patternLayout {
artifact("[organisation]/releases/download/v[revision]/[module].jar")
m2compatible = true
}
metadataSources { artifact() }
}
}
dependencies {
minecraft "bta-download-repo:bta:${project.bta_version}"
mappings loom.layered() {} // Cheat Loom to apply no mappings on our BTA jar
modImplementation "babric:fabric-loader:${project.loader_version}"
implementation "org.slf4j:slf4j-api:1.8.0-beta4"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.release.set 8
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}