Slackbot
07/29/2023, 4:22 PMChris Lee
07/29/2023, 4:37 PMcompileOnly
, which requires the consumer to provide an implementation of their version choice.Javi
07/29/2023, 4:43 PMimplementation
as changing the kotlin version is an exception in tons of projects which would lead to force me to apply the kotlin plugin in all of themChris Lee
07/29/2023, 4:43 PMJavi
07/29/2023, 4:44 PMJavi
07/29/2023, 6:44 PMcompileOnly
in local for a time until I found a different way, but looks like it is being added to the classpath too, not sure how, maybe transitively from other plugin?
Anyway, still looking for an alternative to remove a plugin from the classpath to readd it with a different version, or override the version if possibleJavi
08/01/2023, 4:31 PMJavi
08/01/2023, 4:34 PM* What went wrong:
Error resolving plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.9.20-dev-5788']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
Javi
08/01/2023, 4:35 PMVampire
08/02/2023, 9:57 AMJavi
08/02/2023, 10:03 AMimplementation
in order to do the same you see in the image, I will get the same issue, right?
So, should I keep my common module without any implementation
and apply the plugins by ID or something so?Vampire
08/02/2023, 10:06 AMJavi
08/02/2023, 10:40 AMJavi
08/02/2023, 10:41 AMVampire
08/02/2023, 11:32 AMJavi
08/02/2023, 11:33 AMVampire
08/02/2023, 11:38 AMVampire
08/02/2023, 11:38 AMJavi
08/02/2023, 12:02 PMprivate fun Settings.useHubdleOnAllProjects() {
gradle.beforeProject { project ->
if (hubdleSettings.useOnAllProjects.get()) {
project.pluginManager.apply(PluginId.JavierscHubdleProject())
}
}
}
Vampire
08/02/2023, 12:36 PMJavi
08/02/2023, 1:03 PMAn exception occurred applying plugin request [id: 'com.javiersc.hubdle', version: '0.6.0-SNAPSHOT']
> Failed to apply plugin 'com.javiersc.hubdle'.
> Plugin with id 'com.javiersc.hubdle.settings' not found.
I can put the settings one, but I will report what happens with the use on all projects part....Javi
08/02/2023, 1:06 PMJavi
08/02/2023, 1:59 PMcompileOnly
and so on right? It is annoying losing the ability to not only share the ID, being unable to apply the plugin to all projects without breaking project isolation by doing that in the root project, something I will not do...Javi
08/02/2023, 2:09 PMVampire
08/02/2023, 3:36 PMcompileOnly
would help, but then you depend on the consumer providing the dependency which you also said you don't want to.Vampire
08/02/2023, 3:37 PMimplementation
for the cases where you do not want to have a custom version and a variant with compileOnly
so that the consumers that need a different version can provide it by using that variant.Javi
08/02/2023, 6:25 PM