generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
51 lines (44 loc) · 1.48 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
plugins {
id 'java-library'
}
allprojects {
version = mod_version
group = mod_group_id
}
base {
archivesName = mod_id
}
repositories {
maven { url "https://maven.neoforged.net/releases" }
maven { url "https://libraries.minecraft.net/" }
}
configurations {
jij {}
}
dependencies {
compileOnly("net.neoforged.fancymodloader:loader:${fancy_mod_loader_version}")
compileOnly("cpw.mods:securejarhandler:3.0.8")
compileOnly("org.jetbrains:annotations:24.1.0")
jij(project(path: ":mod", configuration: "builtModJar"))
}
jar {
manifest {
attributes["FMLModType"] = "LIBRARY"
attributes["Automatic-Module-Name"] = "monocle_locator"
}
into("META-INF/mod") {
from(configurations.jij) {
rename { String filename ->
return "monocle-mod-file.jar"
}
}
}
}
tasks.named('wrapper', Wrapper).configure {
// Define wrapper values here so as to not have to always do so when updating gradlew.properties.
// Switching this to Wrapper.DistributionType.ALL will download the full gradle sources that comes with
// documentation attached on cursor hover of gradle classes and methods. However, this comes with increased
// file size for Gradle. If you do switch this to ALL, run the Gradle wrapper task twice afterwards.
// (Verify by checking gradle/wrapper/gradle-wrapper.properties to see if distributionUrl now points to `-all`)
distributionType = Wrapper.DistributionType.BIN
}