@@ -48,9 +48,9 @@ repositories {
48
48
}
49
49
}
50
50
51
- sourceSets {
52
- test
53
- }
51
+ // sourceSets {
52
+ // test
53
+ // }
54
54
55
55
group = project. mod_group_id
56
56
@@ -80,6 +80,15 @@ neoForge {
80
80
81
81
validateAccessTransformers = true
82
82
83
+ mods {
84
+ " ${ mod_id} " {
85
+ sourceSet sourceSets. main
86
+ }
87
+ " modularrouterstest" {
88
+ sourceSet sourceSets. test
89
+ }
90
+ }
91
+
83
92
runs {
84
93
// applies to all the run configs below
85
94
configureEach {
@@ -104,6 +113,7 @@ neoForge {
104
113
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
105
114
systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
106
115
loadedMods = [mods. modularrouters, mods. modularrouterstest]
116
+ sourceSet = sourceSets. test
107
117
}
108
118
109
119
server {
@@ -118,6 +128,8 @@ neoForge {
118
128
gameTestServer {
119
129
type = " gameTestServer"
120
130
systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
131
+ loadedMods = [mods. modularrouters, mods. modularrouterstest]
132
+ sourceSet = sourceSets. test
121
133
}
122
134
123
135
data {
@@ -126,13 +138,6 @@ neoForge {
126
138
programArguments. addAll ' --mod' , project. mod_id, ' --all' , ' --output' , file(' src/generated/resources/' ). getAbsolutePath(), ' --existing' , file(' src/main/resources/' ). getAbsolutePath()
127
139
}
128
140
}
129
-
130
- mods {
131
- " ${ mod_id} " {
132
- sourceSet sourceSets. main
133
- sourceSet sourceSets. test
134
- }
135
- }
136
141
}
137
142
138
143
// Include resources generated by data generators.
@@ -146,8 +151,6 @@ dependencies {
146
151
// implementation "net.neoforged:neoforge:${neo_version}"
147
152
localRuntime(testImplementation(" net.neoforged:testframework:${ neo_version} " ))
148
153
149
- // implementation sourceSets.test.output
150
-
151
154
compileOnly(" mcjty.theoneprobe:theoneprobe:${ top_version} " ) {
152
155
transitive = false
153
156
}
0 commit comments