Youssef Shoaib [MOD]
12/31/2021, 2:38 AMdmitriy.novozhilov
01/03/2022, 10:50 AMYoussef Shoaib [MOD]
01/05/2022, 12:57 AMkotlinCompilerPluginClasspathMain
configuration had a dependency on kotlin-plugin, but gradle resolved that to be itself and not the published version. In other words, in project :kotlin-plugin
, which was set up to be version 0.1.3
, I used my plugin in build.gradle.kts
, which resolved to the published 0.1.2
gradle-plugin, but then since ``kotlinCompilerPluginClasspathMain` depended on kotlin-plugin
, even though it depended on 0.1.2
, gradle still resolved it to the project kotlin-plugin
i.e. itself, even though that had version 0.1.3
.
I did find a solution, though. Digging around, it seems like that people were either trying to use their gradle plugins on the same project, and so their solution was to dynamically compile the groovy code, which isn't an option here. Others though wanted to use a published version of their project for rebasing, and their solution was to change the group of the project temporarily.
What I ended up doing is that I simply set the version in my project :kotlin-plugin
to be 0.1.1
so that it's lower than the requested 0.1.2
and so Gradle was forced to use the published version, and then I made sure to set the correct version in my maven publishing configuration.
Here's the diff from that commit.Youssef Shoaib [MOD]
01/05/2022, 12:59 AMmy.group:kotlin-plugin:0.1.2
to be the published version instead of resolving to itself (because it itself has version 0.1.3)dmitriy.novozhilov
01/05/2022, 10:21 AM1.x.y-dev-abcd
to 1.x.255-SNAPSHOT
, which is published to maven local.
For global bootstrap we deploy some build to bootstrap repo and only after that update bootstrap version in project itselfYoussef Shoaib [MOD]
01/06/2022, 10:07 AM