-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (70 loc) · 2.68 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
buildscript {
repositories {
flatDir {
dirs 'libs'
}
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0'
}
}
plugins {
id 'java'
id 'net.minecraftforge.gradle' version '6.0.+'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
apply plugin: 'idea'
group = 'com.zengyj.exposer'
version = "${mod_version}-${mc_version}"
minecraft {
// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: "${mapping_channel}", version: "${mc_version}"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
// Default run configurations.
// These can be tweaked, removed, or duplicated as needed.
runs {
client {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
//JvmArgs += "-Dfml.coreMods.load=com.github.vfyjxf.nee.asm.NEELoadingPlugin"
}
server {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
//JvmArgs += "-Dfml.coreMods.load=com.github.vfyjxf.nee.asm.NEELoadingPlugin"
}
}
}
repositories {
gradlePluginPortal()
maven { url 'https://cursemaven.com/' }
}
dependencies {
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
implementation fg.deobf("curse.maven:refined-storage-243076:4844585")
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
inputs.property "version", "${mod_version}"
inputs.property "mcversion", "${mc_version}"
from(sourceSets.main.resources.srcDirs) {
include 'META-INF/mods.toml'
filesMatching(['META-INF/mods.toml']){
expand 'version': "${mod_version}"
}
}
}
test {
}