Skip to content

Commit 35dd61c

Browse files
authored
[build] Fix Eclipse annotation generation in wpilibjExamples (#8295)
1 parent 9e85f3c commit 35dd61c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

wpilibjExamples/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ dependencies {
3131
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
3232
}
3333

34+
// Prevent the eclipse compiler (used by the VS Code extension for intellisense and debugging)
35+
// from generating bad class files from annotation processors like Epilogue
36+
eclipse {
37+
classpath {
38+
containers 'org.eclipse.buildship.core.gradleclasspathcontainer'
39+
file.whenMerged { cp ->
40+
def entries = cp.entries;
41+
def src = new org.gradle.plugins.ide.eclipse.model.SourceFolder('build/generated/sources/annotationProcessor/java/main/', null)
42+
entries.add(src)
43+
}
44+
}
45+
}
46+
3447
jacoco {
3548
toolVersion = "0.8.13"
3649
}

0 commit comments

Comments
 (0)