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

Use Kotlin DSL for gradle scripts #81

Merged
merged 5 commits into from
Nov 23, 2023
Merged

Use Kotlin DSL for gradle scripts #81

merged 5 commits into from
Nov 23, 2023

Conversation

themkat
Copy link
Collaborator

@themkat themkat commented Nov 22, 2023

The sharing of code from the shared module in kotlin-language-server started failing roughly at the time we set up Kotlin DSL there. (issue: #74). This PR makes it possible to use the latest shared module again.

Probably not perfect, but seems to create the necessary artifacts (i.e, zip file and executables).

About the inclusion of the exposed dependencies:
If we don't add this, while still using newest kotlin-language-server:shared, we get the following error:

e: file:///Users/marie/Programming/Kotlin/kotlin-debug-adapter/adapter/src/main/kotlin/org/javacs/ktda/classpath/DebugClassPathResolver.kt:10:2 Cannot access class 'org.jetbrains.exposed.sql.Database'. Check your module classpath for missing or conflicting dependencies

Adding the dependencies fixes the issue. We should find a way to avoid adding them here, as the versions might deviate between this project and kotlin-language-server. It seems like the shared module don't read the versions from its platform module when importing it like we do in this project. We might start by looking into that.

@themkat themkat added the enhancement New feature or request label Nov 22, 2023
@themkat themkat marked this pull request as draft November 22, 2023 17:27
@themkat themkat marked this pull request as ready for review November 22, 2023 17:42
@themkat themkat marked this pull request as draft November 22, 2023 18:04
@themkat themkat marked this pull request as ready for review November 23, 2023 12:19
@themkat
Copy link
Collaborator Author

themkat commented Nov 23, 2023

I say we merge this now. Then people can try building themselves and maybe create PRs with solutions to what I wrote in the description 🙂

Closes #74. (hopefully)

@themkat themkat merged commit 7f05669 into fwcd:main Nov 23, 2023
2 checks passed
@themkat themkat deleted the kotlin_dsl branch November 23, 2023 15:45
Comment on lines +28 to +30
// modules temporarily needed because of shared module import above
implementation("org.jetbrains.exposed:exposed-core:0.37.3")
implementation("org.jetbrains.exposed:exposed-dao:0.37.3")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The classpath database machinery would probably be interesting for the debug adapter too, perhaps we can integrate that permanently here too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants