Skip to content

Commit

Permalink
GWT annotation processor fix.
Browse files Browse the repository at this point in the history
Thanks, Filip Dreger! I never found an annotation-processor-based library that was compatible with GWT to test this with, so I hope this works for your use case.
  • Loading branch information
tommyettinger committed Mar 17, 2024
1 parent cb4732b commit d3928c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/gdx/liftoff/data/platforms/GWT.kt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ task dist(dependsOn: [clean, compileGwt]) {
task addSource {
doLast {
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
${if (project.hasPlatform(Shared.ID)) "sourceSets.main.compileClasspath += files(project(':shared').sourceSets.main.allJava.srcDirs)" else ""}
sourceSets.main.compileClasspath += files("../core/build/generated/sources/annotationProcessor/java/main")
${if (project.hasPlatform(Shared.ID)) " sourceSets.main.compileClasspath += files(project(':shared').sourceSets.main.allJava.srcDirs)" else ""}
}
}
Expand Down

0 comments on commit d3928c4

Please sign in to comment.