@@ -14,7 +14,7 @@ ext.isAlpha = ext.releaseTag.contains("alpha")
14
14
ext. isBeta = ext. releaseTag. contains(" beta" )
15
15
def relType = ext. isAlpha ? " alpha" : (ext. isBeta ? " beta" : " release" )
16
16
17
- version = mod_version
17
+ def gametest_mod_id = mod_id + " test "
18
18
19
19
repositories {
20
20
mavenLocal()
@@ -48,10 +48,7 @@ repositories {
48
48
}
49
49
}
50
50
51
- // sourceSets {
52
- // test
53
- // }
54
-
51
+ version = mod_version
55
52
group = project. mod_group_id
56
53
57
54
base {
@@ -84,7 +81,7 @@ neoForge {
84
81
" ${ mod_id} " {
85
82
sourceSet sourceSets. main
86
83
}
87
- " modularrouterstest " {
84
+ " ${ gametest_mod_id } " {
88
85
sourceSet sourceSets. test
89
86
}
90
87
}
@@ -111,14 +108,13 @@ neoForge {
111
108
client()
112
109
systemProperty ' neoforge.enableGameTest' , ' true'
113
110
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
114
- systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
115
- loadedMods = [mods. modularrouters, mods. modularrouterstest]
111
+ systemProperty ' neoforge.enabledGameTestNamespaces' , " ${ project.mod_id} ,${ gametest_mod_id} "
116
112
sourceSet = sourceSets. test
117
113
}
118
114
119
115
server {
120
116
server()
121
- systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
117
+ systemProperty ' neoforge.enabledGameTestNamespaces' , " ${ project.mod_id} "
122
118
programArgument ' --nogui'
123
119
}
124
120
@@ -127,8 +123,7 @@ neoForge {
127
123
// The gametest system is also enabled by default for other run configs under the /test command.
128
124
gameTestServer {
129
125
type = " gameTestServer"
130
- systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
131
- loadedMods = [mods. modularrouters, mods. modularrouterstest]
126
+ systemProperty ' neoforge.enabledGameTestNamespaces' , " ${ project.mod_id} ,${ gametest_mod_id} "
132
127
sourceSet = sourceSets. test
133
128
}
134
129
@@ -144,19 +139,20 @@ neoForge {
144
139
sourceSets. main. resources { srcDir ' src/generated/resources' }
145
140
146
141
configurations {
142
+ compileClasspath. extendsFrom localImplementation
143
+ runtimeClasspath. extendsFrom localImplementation
147
144
runtimeClasspath. extendsFrom localRuntime
148
145
}
149
146
150
147
dependencies {
151
- // implementation "net.neoforged:neoforge:${neo_version}"
152
148
localRuntime(testImplementation(" net.neoforged:testframework:${ neo_version} " ))
153
149
154
150
compileOnly(" mcjty.theoneprobe:theoneprobe:${ top_version} " ) {
155
151
transitive = false
156
152
}
157
153
158
- compileOnly " curse.maven:jade-324717:${ jade_curse_id} "
159
- //
154
+ localImplementation " curse.maven:jade-324717:${ jade_curse_id} "
155
+
160
156
compileOnly " vazkii.patchouli:Patchouli:${ patchouli_version} :api"
161
157
// runtimeOnly "vazkii.patchouli:Patchouli:${patchouli_version}"
162
158
//
0 commit comments