-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
72 lines (64 loc) · 2.13 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
buildscript {
repositories {
maven { url = "https://maven.minecraftforge.net" }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
plugins {
id('net.kyori.blossom') version '1.3.0'
}
apply plugin: 'net.minecraftforge.gradle'
version = modVersion
group = modGroup
archivesBaseName = modName
minecraft {
mappings channel: mappingsChannel, version: mappingsVersion
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
// ToDo figure out how to reference external ATs w.o directly adding them to the project.
// accessTransformers('src/main/resources/META-INF/sereneseasons_at.cfg', 'src/main/resources/META-INF/pixelmon_at.cfg')
mods {
pixelseasons {
source sourceSets.main
}
}
}
}
}
repositories {
// If you're confused why is this being used it's because the actual curse "maven" works great! Refer to https://www.cursemaven.com/ for usage info.
maven {
url 'https://www.cursemaven.com'
content {
includeGroup 'curse.maven'
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:' + minecraftVersion + '-' + forgeVersion
implementation fg.deobf('curse.maven:serene-seasons-' + sereneSeasonsId + ':' + sereneSeasonsVersion)
implementation fg.deobf('curse.maven:pixelmon-' + pixelmonId + ':' + pixelmonVersion)
}
processResources {
filesMatching('mcmod.info') {
expand(
'modId': modId,
'modName': modName,
'modVersion': modVersion,
'minecraftVersion': minecraftVersion
)
}
}
blossom {
def mainClazz = 'src/main/java/' + modGroup.replace(".", "/") + '/' + modName + '.java'
replaceToken('@MOD_NAME@', modName, mainClazz)
replaceToken('@MOD_ID@', modId, mainClazz)
replaceToken('@VERSION@', modVersion, mainClazz)
}
jar.finalizedBy('reobfJar')