-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
103 lines (84 loc) · 2.78 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
100
101
102
103
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
version = '1.17.1-1.0.0'
group = 'meldexun.entity_culling'
archivesBaseName = 'EntityCulling'
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
minecraft {
mappings channel: 'official', version: '1.17.1'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
taskName 'runClient EC 1.17'
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
mods {
entity_culling {
source sourceSets.main
}
}
}
server {
taskName 'runServer EC 1.17'
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
mods {
entity_culling {
source sourceSets.main
}
}
}
data {
taskName 'runData EC 1.17'
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
args '--mod', 'entity_culling', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
entity_culling {
source sourceSets.main
}
}
}
}
}
// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }
configurations {
includedDependencies
implementation.extendsFrom(includedDependencies)
}
repositories {
ivy {
url 'https://github.com/'
patternLayout {
artifact '[organisation]/[module]/releases/download/v[revision]/[module]-[revision].[ext]'
}
metadataSources { artifact() }
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.17.1-37.0.85'
includedDependencies 'meldexun:ReflectionUtil:1.0.0@jar'
includedDependencies 'meldexun:RaytraceUtil:1.0.2@jar'
}
// Fix non-mod dependencies not being loaded in dev
minecraft.runs.all {
lazyToken('minecraft_classpath') {
configurations.includedDependencies.copyRecursive().resolve().collect { it.absolutePath }.join(File.pathSeparator)
}
}
jar {
from {
configurations.includedDependencies.collect { it.isDirectory() ? it : zipTree(it) }
}
}