Skip to content

Commit

Permalink
Fix sources not including generated
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyces committed May 27, 2024
1 parent 1b3a8e2 commit 69cc4c3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ dependencies {
implementation(libs.mixinextras.common.get())
}

artifacts {
add(commonJava.name, sourceSets.main.get().java.sourceDirectories.singleFile)
add(commonResources.name, sourceSets.main.get().resources.sourceDirectories.singleFile)
}

sourceSets.main {
resources {
srcDir("src/generated/resources")
}
}

artifacts {
add(commonJava.name, sourceSets.main.get().java.sourceDirectories.singleFile)
sourceSets.main.get().resources.sourceDirectories.forEach {
add(commonResources.name, it)
}
}

idea {
module {
inheritOutputDirs = false
Expand Down

0 comments on commit 69cc4c3

Please sign in to comment.