Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gradle build server support. #1391

Merged
merged 38 commits into from
Aug 28, 2023
Merged

Add Gradle build server support. #1391

merged 38 commits into from
Aug 28, 2023

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented Aug 28, 2023

This PR adds the Gradle build server support including:

  • An Importer, which is an OSGi bundle of the JDT.LS, integrates with the Gradle build server.
  • A modified partial JDT native Java builder which is used to report the diagnostics.
  • Some modification of the build and CI tasks for the integration.

jdneo added 30 commits July 25, 2023 13:14
Signed-off-by: Sheng Chen <[email protected]>
* fix: Turn on 'callOnEmptyDelta' for builder

- Because the build server builder ignores the auto builds, so we need to
  turn on the 'callOnEmptyDelta' - Auto build will do nothing but update
  the state tree.

* Disable auto build and clean build via extension point
- Directly refresh the output folder instead of refreshing the whole project.
  This should improve the perf of the project import.
- Try to find all the JDKs which are compatible to the source level and
  the gradle version.
- Among those JDKs, find the latest one and set to classpath.
- If no JDK is found, use the JDK which is used to launch the Gradle daemon.
  This JDK might be the embedded JDK, so it is only a fallbak.
@jdneo jdneo requested a review from testforstephen as a code owner August 28, 2023 02:52
@jdneo jdneo merged commit 65938f2 into develop Aug 28, 2023
@jdneo jdneo deleted the cs/gradle-bs branch August 28, 2023 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants