forked from krwminer/MowziesMobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (75 loc) · 2.24 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
buildscript {
repositories {
maven {
url "https://files.minecraftforge.net/maven"
}
jcenter()
mavenCentral()
}
dependencies {
classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "5.1.+", changing: true
}
}
apply plugin: "net.minecraftforge.gradle"
apply from: 'https://raw.githubusercontent.com/SizableShrimp/Forge-Class-Remapper/main/classremapper.gradle'
version = "1.5.20"
group = "com.bobmowzie.mowziesmobs"
archivesBaseName = "mowziesmobs"
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
minecraft {
mappings channel: "official", version: "1.17.1"
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file("run")
property "forge.logging.console.level", "debug"
mods {
mowziesmobs {
source sourceSets.main
}
}
}
server {
workingDirectory project.file("run-server")
property "forge.logging.console.level", "debug"
mods {
mowziesmobs {
source sourceSets.main
}
}
}
}
}
jar {
manifest {
attributes([
"Specification-Title": "mowziesmobs",
"Specification-Vendor": "BobMowzie",
"Specification-Version": "1",
"Implementation-Title": "mowziesmobs",
"Implementation-Version": "${project.version}",
"Implementation-Vendor" : "BobMowzie",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
repositories {
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' }
}
dependencies {
minecraft "net.minecraftforge:forge:1.17.1-37.1.1"
implementation fg.deobf('software.bernie.geckolib:geckolib-1.17.1:3.0.10')
}
processResources {
def vars = [
"version": project.version
]
inputs.properties(vars)
from(sourceSets.main.resources.srcDirs) {
include("META-INF/mods.toml")
expand(vars)
}
from(sourceSets.main.resources.srcDirs) {
exclude("META-INF/mods.toml")
}
}