@@ -95,21 +95,22 @@ legacyForge {
9595 // You can set various levels here.
9696 // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
9797 logLevel = org.slf4j.event.Level . DEBUG
98- sourceSet = sourceSets. main
9998 }
10099 client {
101100 client()
101+ sourceSet = sourceSets. main
102102 programArguments. addAll(' --refresh-dependencies' )
103103 systemProperty(' forge.enabledGameTestNamespaces' , project. mod_id)
104104 }
105105 server {
106106 server()
107+ sourceSet = sourceSets. main
107108 systemProperty(' forge.enabledGameTestNamespaces' , project. mod_id)
108109 programArguments. addAll(' --nogui' , ' --world' , ' world-extra' )
109110 }
110111 data {
111112 data()
112-
113+ sourceSet = sourceSets . main
113114 // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
114115 programArguments. addAll(' --mod' , project. mod_id, ' --all' , ' --output' , file(' src/generated/resources/' ). getAbsolutePath(), ' --existing' , file(' src/main/resources/' ). getAbsolutePath())
115116 programArguments. addAll(' --existing-mod' , ' gtceu' )
@@ -151,15 +152,16 @@ dependencies {
151152 modImplementation(" com.gregtechceu.gtceu:gtceu-${ minecraft_version} :${ gtceu_version} :slim" ) { transitive = false }
152153 modImplementation(" com.lowdragmc.ldlib:ldlib-forge-${ minecraft_version} :${ ldlib_version} " ) { transitive = false }
153154 modImplementation(" com.tterrag.registrate:Registrate:${ registrate_version} " )
154- modRuntimeOnly (" dev.toma.configuration:configuration-forge-${ minecraft_version} :${ configuration_version} " )
155+ modImplementation (" dev.toma.configuration:configuration-forge-${ minecraft_version} :${ configuration_version} " )
155156
156157 // lombok
157158 compileOnly ' org.projectlombok:lombok:1.18.24'
158159 annotationProcessor ' org.projectlombok:lombok:1.18.24'
159160}
160161
162+ // See com.example.examplemod.mixin.DummyMixin for information about mixins
161163mixin {
162- add sourceSets. main, " ${ mod_id} .refmap.json"
164+ add sourceSets. main, " mixins. ${ mod_id} .refmap.json"
163165 config " ${ mod_id} .mixins.json"
164166}
165167
@@ -190,4 +192,5 @@ tasks.withType(JavaCompile).configureEach {
190192 // If Javadoc is generated, this must be specified in that task too.
191193 options. encoding = " UTF-8"
192194 options. release. set(17 )
195+ options. compilerArgs << " -Aquiet=true" // Suppress mixin notes
193196}
0 commit comments