Skip to content

WIP: Gradle 5 and Java 11 support #109

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

Merged
merged 15 commits into from
Jul 31, 2019
Merged

WIP: Gradle 5 and Java 11 support #109

merged 15 commits into from
Jul 31, 2019

Conversation

fwcd
Copy link
Owner

@fwcd fwcd commented May 12, 2019

This PR tracks support for Gradle 5 and Java 11.

@fwcd fwcd added the enhancement New feature or request label May 12, 2019
fwcd added 2 commits May 12, 2019 23:01
This commit updates the wrapper, but does not build correctly yet due to
the way Kotlin compiler libraries are resolved. To address this issue,
the previous mechanism of copying the dependent libraries into a local
folder from which they are included has to be updated. Since depending
on JAR files is non-ideal, a better solution would be to find the
(correctly packaged) libraries on a Maven repository and include them.
Updates the Kotlin version of the language server to 1.3.3x
fwcd added 3 commits May 12, 2019 23:10
Updates the Gradle-TeamCity plugin to 0.19 for Gradle 5 support.
Adds the kotlin-scripting-compiler to the classpath since
CliScriptDefinitionProvider has been moved to this package.
Updates the script (and script dependencies) provider to the most recent
API. The issue that no declarators can be found for SCRIPT declarations
persists however (this can be verified using the EditFunctionTest).
@fwcd fwcd added the help wanted Extra attention is needed label May 12, 2019
@fwcd
Copy link
Owner Author

fwcd commented May 12, 2019

Unfortunately, support for Kotlin scripts is broken due to some breaking API changes in the script declaration resolver. For more details, see the commit message on 4df20d4.

@mattdkerr
Copy link

Is this still true for kotlin 1.3.40?

fwcd added 10 commits July 31, 2019 16:45
Gradle 5.6 introduces interpolated version strings in the 'plugins'
block which make it easier to maintain the current Kotlin version in a
single place.
Register a ScriptingCompilerConfigurationComponentRegistrar as described
in https://youtrack.jetbrains.com/issue/KT-30679.

In the LanguageServerTestFixture, output the memory usage after each
test and format log messages to a single line.
Remove some unused dependencies.
@fwcd fwcd merged commit a574aac into master Jul 31, 2019
@casret
Copy link

casret commented Aug 1, 2019

I see this was merged, how do I build the server under 11?

@fwcd
Copy link
Owner Author

fwcd commented Aug 2, 2019

@casret Just as before, using ./gradlew :server:installDist or ./gradlew :server:build. Note that even if you use JDK 11/12, the compiler will still target JVM 8 byte code (for compatibility reasons). This should run fine on higher JDKs though.

@fwcd fwcd deleted the gradle5 branch August 4, 2019 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants