Skip to content

Commit

Permalink
[developerRobot] Workaround Eclipse annotation processor issues
Browse files Browse the repository at this point in the history
Supersedes wpilibsuite#7534

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
  • Loading branch information
spacey-sooty committed Dec 11, 2024
1 parent cc41a0e commit 8d1d4a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions developerRobot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ deploy {
}
}

// Prevent the eclipse compiler (used by the VS Code extension for intellisense and debugging)
// from generating bad class files from annotation processors like Epilogue
eclipse {
classpath {
containers 'org.eclipse.buildship.core.gradleclasspathcontainer'
file.whenMerged { cp ->
def entries = cp.entries;
def src = new org.gradle.plugins.ide.eclipse.model.SourceFolder('build/generated/sources/annotationProcessor/java/main/', null)
entries.add(src)
}
}
}

tasks.register('deployJava') {
try {
dependsOn tasks.named('deployjreroborio')
Expand Down

0 comments on commit 8d1d4a4

Please sign in to comment.