Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created November 14, 2022 12:33
Show Gist options
  • Save callstack-bot/4d48d0f481081b73a4d15c1d1e72caa6 to your computer and use it in GitHub Desktop.
Save callstack-bot/4d48d0f481081b73a4d15c1d1e72caa6 to your computer and use it in GitHub Desktop.
sourceSets {
main {
if (isNewArchitectureEnabled()) {
java.srcDirs += [
"src/fabric/java",
"${project.buildDir}/generated/source/codegen/java"
]
} else {
java.srcDirs += ["src/paper/java"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment