question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQLDelight bleeds IntelliJ dependencies onto buildscript class path

See original GitHub issue

SQLDelight bundles certain IntelliJ classes as part of its gradle plugin. As Gradle does not use separate classloaders for each plugin, this causes them to appear on the classpath of the buildscript and in them being shared among all plugins. This in turn may result in conflicts with other plugins, which also use IntelliJ classes, since they might require a different IntelliJ SDK version.

However, even when the versions are compatible, for each ApplicationManager class there can only be one CoreApplicationEnvironment active at the same time (see e.g. #1912 for context). So if other plugins also need to initialize an application, this leads to hard to debug problems, since one might effectively deregister the services, extension points, etc. of the other.

Please consider relocating your bundled IntelliJ dependencies to a SQLDelight specific package (e.g. com.squareup.sqldelight.deps) in order to avoid both of these problems.

Relevant section in the build file: https://github.com/cashapp/sqldelight/blob/544bccfd1302de5169ce03f75fbcc9c2e470b8fd/sqldelight-gradle-plugin/build.gradle#L43

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AlecStrongcommented, Mar 29, 2021

we’ve still gotta update to the intellij artifacts so that we dont bundle the jar in directly.

0reactions
ZacSweerscommented, Mar 29, 2021

Should this be closed? This was marked as fixed in the 1.4.4 release notes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle integration : external dependencies not in classpath on ...
Hi, I'm using IntelliJ IDEA 2016.3.1 with the Gradle integration. From the Gradle window, when I click Refresh All Gradle Projects, I see......
Read more >
sqldelight v1.4.4 release notes (2020-10-08) | LibHunt
sqldelight v1.4.4 Release Notes ... [Gradle Plugin] SQLDelight bleeds IntelliJ dependencies onto buildscript class path (#1998) ...
Read more >
com.squareup.sqldelight:native-driver-watchosarm32: Versions ...
[Gradle Plugin] SQLDelight bleeds IntelliJ dependencies onto buildscript class path (#1998). [Gradle Plugin] "JavadocIntegrationKt not found" compilation ...
Read more >
SQLDelight: Getting Started - Tony Owen - Medium
Here's what needs to be added to your gradle build files. Project build.grade file: dependencies { // any other shizzle classpath 'com.squareup.sqldelight: ...
Read more >
Dependencies classpath works in eclipse but not in Intellij
In your case, classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.2.RELEASE") is the dependency for build script, and it should be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found