Dr. David H Akehurst
10/10/2024, 8:48 AMCould not resolve all files for configuration
...
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find <my plugin>
and seems to be searching in maven central (https://repo.maven.apache.org/maven2)
I tried adding repositories to the pluginManagement
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
but that does not seem to help!
any ideas...what have I forgotten, I'm sure I used to use this custom plugin without any issues!
thanksVampire
10/10/2024, 9:37 AM--scan URL if possible?Dr. David H Akehurst
10/10/2024, 1:48 PMExecution failed for task ':ValueClassExtensionNotWorkingInJavascript:compileKotlinJs'.
> Could not resolve all files for configuration ':ValueClassExtensionNotWorkingInJavascript:kotlinCompilerPluginClasspathJsMain'.
> Could not find net.akehurst.kotlin.gradle.plugin:exportPublic:2.0.20-rc1.
Searched in the following locations:
- <https://repo.maven.apache.org/maven2/net/akehurst/kotlin/gradle/plugin/exportPublic/2.0.20-rc1/exportPublic-2.0.20-rc1.pom>
Required by:
project :ValueClassExtensionNotWorkingInJavascriptDr. David H Akehurst
10/10/2024, 2:01 PMVampire
10/10/2024, 2:19 PMVampire
10/10/2024, 2:23 PMKotlinCompilerPluginSupportPlugin you define your Gradle plugin as plugin artifact.
But the Kotlin compiler plugins are resolved using the project repositories, not the plugin repositories.
And there your plugin is not found as you only published it to the Gradle Plugin Portal.Dr. David H Akehurst
10/10/2024, 2:30 PMVampire
10/10/2024, 2:32 PMVampire
10/10/2024, 2:33 PMDr. David H Akehurst
10/10/2024, 2:34 PMOr the consumers have to add the GPP as repository.how would one do that ? what is the URL to the GPP where the artefacts are contained ?
Vampire
10/10/2024, 2:35 PMgradlePluginPortal() just like mavenCentral()Dr. David H Akehurst
10/10/2024, 2:35 PMDr. David H Akehurst
10/10/2024, 2:36 PMrepositories {
gradlePluginPortal()
}