Skip to content

Commit

Permalink
yyy
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Dec 11, 2024
1 parent 4c70b1d commit b2c1861
Showing 1 changed file with 21 additions and 36 deletions.
57 changes: 21 additions & 36 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ base {
archivesName = mod_id
}

sourceSets {
/*
main {
java {
// Include the default `src/main/java` and the additional `src/doom` folder
srcDirs = ['src/main/java']
}
}
*/
doom {
java {
srcDirs = ['src/doom']
}
}
}


// Mojang ships Java 21 to end users starting in 1.20.5, so mods should target Java 21.
java.toolchain.languageVersion = JavaLanguageVersion.of(21)

Expand Down Expand Up @@ -89,13 +106,12 @@ neoForge {
}
}

addModdingDependenciesTo sourceSets.doom

mods {
// define mod <-> source bindings
// these are used to tell the game which sources are for which mod
// mostly optional in a single mod project
// but multi mod projects should define one per mod
"${mod_id}" {
sourceSet(sourceSets.main)
sourceSet sourceSets.main
sourceSet sourceSets.doom
}
}
}
Expand Down Expand Up @@ -167,34 +183,3 @@ idea {
downloadJavadoc = true
}
}

sourceSets {
main {
java {
// Include the default `src/main/java` and the additional `src/doom` folder
srcDirs = ['src/main/java']
}
}
}

sourceSets {
doom {
java {
srcDirs = ['src/doom']
}
resources {
srcDirs = ['src/doom/resources']
}
}
}

neoForge {
addModdingDependenciesTo sourceSets.doom

mods {
"${mod_id}" {
sourceSet sourceSets.main
sourceSet sourceSets.doom
}
}
}

0 comments on commit b2c1861

Please sign in to comment.