This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
forked from Flamarine/BTAModList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (70 loc) · 2.12 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
77
78
79
80
81
82
83
84
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
}
// No babric loom here
group = project.mod_group
archivesBaseName = project.mod_name
version = project.mod_version
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/Joe4422"
patternLayout {
artifact("[organisation]/releases/download/v[revision]/[module].jar")
m2compatible = true
}
metadataSources { artifact() }
}
}
// We use shadow here to avoid the following dependencies being shadowed.
// If you want to add your own dependency, you should also use 'shadow' most of the time.
// Yet, if you want to include your dependency, use normal 'implementation' instead.
dependencies {
shadow "org.ow2.asm:asm:${project.asm_version}"
shadow "org.ow2.asm:asm-analysis:${project.asm_version}"
shadow "org.ow2.asm:asm-commons:${project.asm_version}"
shadow "org.ow2.asm:asm-tree:${project.asm_version}"
shadow "org.ow2.asm:asm-util:${project.asm_version}"
shadow("net.fabricmc:sponge-mixin:${project.mixin_version}") {
exclude module: 'launchwrapper'
exclude module: 'guava'
}
shadow "babric:fabric-loader:${project.loader_version}"
shadow "test-upload-repo-bta:bta:${project.bta_version}"
shadow "org.slf4j:slf4j-api:1.8.0-beta4"
shadow 'org.apache.logging.log4j:log4j-slf4j18-impl:2.17.2'
}
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}" }
}
}
shadowJar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
jar.finalizedBy tasks.shadowJar
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}