[build] Fix Eclipse annotation generation in wpilibjExamples (#8295)

This commit is contained in:
Edan Thomton
2025-10-24 01:29:32 -04:00
committed by GitHub
parent 9e85f3cf55
commit 35dd61cde5

View File

@@ -31,6 +31,19 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
// 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)
}
}
}
jacoco {
toolVersion = "0.8.13"
}