Skip to content

Commit

Permalink
Add Forge-recommended module and copyIdeResources fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Fireplace committed Jul 27, 2024
1 parent ad3347e commit 332f0e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
plugins {
id 'java'
id 'java-library'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'net.minecraftforge.gradle' version '[6.0.24,6.2)'
// Mod Hosting Publish
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'com.modrinth.minotaur' version '2.+'
Expand Down Expand Up @@ -83,6 +83,8 @@ mixin {
minecraft {
mappings channel: 'official', version: minecraft_version

copyIdeResources = true

runs {
configureEach {
workingDirectory project.file('run')
Expand Down Expand Up @@ -132,6 +134,12 @@ minecraft {

sourceSets.main.resources.srcDir 'src/generated/resources'

sourceSets.each {
def dir = layout.buildDirectory.dir("sourcesSets/$it.name")
it.output.resourcesDir = dir
it.java.destinationDirectory = dir
}

processResources {
from project(":common").sourceSets.main.resources

Expand Down

0 comments on commit 332f0e6

Please sign in to comment.