neoforged / NeoGradle

Gradle plugin for NeoForge development
GNU Lesser General Public License v2.1
44 stars 24 forks source link

Expanded resources sometimes are not copied into the eclipse bin/main directory #70

Closed Shadows-of-Fire closed 7 months ago

Shadows-of-Fire commented 9 months ago

Temporary workaround is to add

    var resourceTargets = ['META-INF/mods.toml', 'pack.mcmeta']
    var intoTargets = ["$rootDir/bin/main/"]
    intoTargets.each { target ->
        if (file(target).exists()) {
            copy {
                from(sourceSets.main.resources) {
                    include resourceTargets
                    expand replaceProperties
                }
                into target
            }
        }
    }

to processResources, but this isn't the ideal solution.

CreativeMD commented 9 months ago

I have the same issue, using the MDK template without any changes.

Nightenom commented 7 months ago

@Shadows-of-Fire can you please test if https://github.com/neoforged/NeoGradle/pull/108 fixes your issue