-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
99 lines (87 loc) · 2.37 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
}
architectury {
minecraft = minecraft_version
}
subprojects {
apply plugin: "dev.architectury.loom"
loom {
silentMojangMappingsLicense()
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
modCompileOnlyApi "mezz.jei:jei-${minecraft_version}.1-common-api:${jei_version}"
mappings loom.layered() {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${mapping_version}@zip")
}
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
version = mod_version
group = maven_group
repositories {
maven {
name "ParchmentMC"
url "https://maven.parchmentmc.org"
}
maven {
name "CurseMaven"
url "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
name "NeoForge"
url "https://maven.neoforged.net/releases/"
}
maven {
name "Jared's maven" // JEI
url "https://maven.blamejared.com/"
}
maven {
name "ModMaven" // JEI
url "https://modmaven.dev"
}
maven {
name "ModMenu"
url "https://maven.terraformersmc.com/"
}
maven {
name "Ladysnake Mods" // Cardinal Components
url "https://maven.ladysnake.org/releases"
}
maven {
name 'GeckoLib'
url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
content {
includeGroupByRegex("software\\.bernie.*")
includeGroup("com.eliotlash.mclib")
}
}
maven {
name 'ClothConfig'
url "https://maven.shedaniel.me/"
}
flatDir {
dir "libs"
}
}
tasks.withType(JavaCompile) {
options.encoding "UTF-8"
options.release.set(21)
}
java {
withSourcesJar()
}
}
tasks.register("publishAllCurseforgeAndModrinth", Task) {
dependsOn ":forge:publishCurseForgeAndModrinth"
dependsOn ":neoforge:publishCurseForgeAndModrinth"
}