-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (80 loc) · 2.65 KB
/
build.gradle
File metadata and controls
102 lines (80 loc) · 2.65 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'fml-loom' version '0.1'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = "[实用工艺]" + project.archives_base_name
}
repositories {
maven {
name = "ModdedMITE"
url = uri("https://maven.limingzxc.top/repository/maven-public/")
}
}
configurations {
fml
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
fml "com.github.MinecraftIsTooEasy:FishModLoader:3.4.2"
implementation "com.github.MinecraftIsTooEasy:FishModLoader:3.4.2"
implementation "com.github.MinecraftIsTooEasy:ManyLib:2.3.0"
implementation "com.github.MinecraftIsTooEasy:ModMenu:10.1.1"
implementation "com.github.MinecraftIsTooEasy:RustedIronCore:1.5.0"
implementation "com.github.MinecraftIsTooEasy:Gson:2.10.1"
implementation "com.github.MinecraftIsTooEasy:FastUtil:8.5.12"
implementation "com.github.MinecraftIsTooEasy:EMI:1.1.24"
compileOnly "com.github.MinecraftIsTooEasy:Extreme:0.1.6.11"
compileOnly "com.github.MinecraftIsTooEasy:MITE-ITE:2.0.19"
compileOnly "com.github.MinecraftIsTooEasy:BeyondExtreme:3.0.7"
compileOnly "com.github.MinecraftIsTooEasy:MITE-ITF-Reborn:17.2.21"
}
def fmlResolvedFile = configurations.fml.files.iterator().next()
loom {
accessWidenerPath = file("src/main/resources/utilitycraft.accessWidener")
mergedMinecraftJar()
mods {
"UtilityCraft" {
sourceSet sourceSets.main
}
}
}
loom.setFML(fmlResolvedFile)
dependencies.add("mappings", loom.fmlMCPMappings())
processResources {
inputs.property "version", project.version
filesMatching("fml.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
}
tasks.named('runClient', JavaExec).configure { exec ->
def user = project.hasProperty('username') ? project.username : 'Dev'
exec.setArgs(['--username', user, '--session', '0', '--width', '854', '--height', '480'])
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}