-
Notifications
You must be signed in to change notification settings - Fork 61
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
Alternative solution how to add compiler plugin dependency to the project #386
Conversation
|
integration-testing/examples/plugin-order-bug/gradle.properties
Outdated
Show resolved
Hide resolved
@@ -17,4 +18,14 @@ class PluginOrderBugTest { | |||
val buildResult = pluginOrderBugProject.cleanAndBuild() | |||
assertTrue(buildResult.isSuccessful, buildResult.output) | |||
} | |||
|
|||
@Test | |||
fun testResolvedCompilerPluginDependency() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added some check that there is org.jetbrains.kotlin:atomicfu:1.9.20
dependency in the project classpath.
In the buildEnvironment we can also find the resolution string:
org.jetbrains.kotlin:atomicfu:1.6.20 -> 1.9.20
but probably just checking for the kotlin version is enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to covering such a scenario!
…-plugin. Do not require to add it manually. Fixes #384
…adle-plugin tests, as those tests are already removed
…at it would be resolved to the latest version present on the user side
…ed for Native targets. It adds kotlin-stdlib dependency as an implementation dependency, though it marks it's version as prefered to avoid resolution in the user project.
Rebased on the latest develop with increased Metaspace |
930c063
to
e6206c5
Compare
Maybe we can postpone solution of the problem with the compileOnly atomicfu dependency in Native targets for now? Though the resolution of this warning for kotlin-stdlib dependency seems ok for now. |
Add a transitive dependency to the compiler plugin in atomicfu-gradle-plugin.
Do not require to add it manually.
Problem: not sure that compiler plugin dependency will be resolved correctly on the user side.