FabricMC / fabricmc.net

The source code and content for https://fabricmc.net/
MIT License
51 stars 28 forks source link

Template mod generator not including src/main/generated in build.gradle #69

Closed O7410 closed 10 months ago

O7410 commented 10 months ago

specifically this code:

sourceSets {     main {         resources {             srcDirs += [                     'src/main/generated'             ]         }     } }

a previous version of the generator did put that in build.gradle but now it doesn't this issue causes the files to generate correctly but when running ./gradlew runClient the game just ignores the src/main/generated folder (src/main/generated is all the assets and data generated by datagen) (with the data generation option enabled)

O7410 commented 10 months ago

nice issue number lol

Linguardium commented 10 months ago

are you checking the "data generation" box?

you should now have a

fabricApi {
    configureDataGeneration()
}
O7410 commented 10 months ago

yeah that's there but it ignores the generated folder if i add the code with sourceDirs i sent earlier it works

specifically this file scripts/src/lib/template/templates/gradle/groovy/build.gradle.eta and this commit https://github.com/FabricMC/fabricmc.net/commit/f37ed3ef25269ccaa667f0964b0dbe0099357950 broke it

O7410 commented 10 months ago

it's a problem in the template mod generator itself, is this the wrong place to report this bug?