Skip to content

Gradle plugin to allow vscode resolve generated .java source codes in all subprojects

License

Notifications You must be signed in to change notification settings

leeyc0/vscode-java-include-annotation-generated-sources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle plugin to let VS Code recognized generated .java source files

This plugin adds generatedSourceOutputDirectory path to SrcDir of all SourceSets in all subprojects, so that VS Code will resolve AutoValue classes correctly. Using this plugin saves you from manually editing sourceSets in every subprojects.

reference: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle

There are cases where Gradle tasks will generate Java classes. To ensure these Java classes are indexed correctly by the Java language server, you need to ensure the paths are added to the .classpath, and this is typically achieved using Gradle sourceSets.

About

Gradle plugin to allow vscode resolve generated .java source codes in all subprojects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages