Idea don't download sources for dependencies in the multibuild project( with buildSrc)

Hi) I have problem when I try to download sources from IntellijIdea.

The project structure is:

  • buildSrc
  • mainProjects:
    • project1
    • project2
  • utils

I got the error next:

Build file ‘\path\rootProj\mainProjects\project1\build.gradle.kts’ line: 1

Plugin [id: ‘’] was not found in any of the following sources:

** Try:*
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.


plugins {

defaultTasks("clean", "smoke")

dependencies {

Could you help to download sources?

Hello @vwassa

gradle try to download a plugin from the gradle plugin repositry but this plugin is not exist

so make sure to write the correct plugin you need or this a custom plugin ?

hope that help and have a nice day :slight_smile:

Thanks, Yes it is, the plugin is from buildSrc(Organizing Gradle Projects) directory and is convention plugin(Sharing build logic between subprojects Sample) So I don’t understand why is it problem to get sources from buildSrc?)

are you sure that there file called in the following path

i assume you use kotlin

hope that help and have a nice day :slight_smile:

Yep, I’m using kotlin + kotlin dsl and path is right) And file extension is .gradle.kts.
I don’t have problem then build and run test. Only then trying to download sources from Intellij idea.
I tried to use the idea plugin:

idea {
    module {
        isDownloadJavadoc = false
        isDownloadSources = true

and it don’t help to solve problem.
I don’t know other technique to download code sources from gradle.

Can you share build.gradle content from buildSrc directory?
And what do you mean exactly with download sources?

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {

afterEvaluate {
    val kotlinApiVersionFromLibsVersionCatalog = libs.versions.kotlin.get().substringBeforeLast(".")

    tasks.withType<KotlinCompile>().configureEach {
        kotlinOptions {
            apiVersion = kotlinApiVersionFromLibsVersionCatalog
            languageVersion = kotlinApiVersionFromLibsVersionCatalog
kotlin {
    val projectJVMVersion: String by project

    jvmToolchain {
        (this as JavaToolchainSpec)

tasks {
    withType<JavaCompile>().configureEach {
        enabled = false
    withType<GroovyCompile>().configureEach {
        enabled = false

dependencies {


sorry for late replay but i do not know and hope other help you and have a nice day :slight_smile:

Can you provide an MCVE? I think it is not fully clear what the setup is. The idea { module { ... } } configuration you mentioned should be irrelevant I think. Iirc it is only relevant if you use the tasks starting with idea which you should not do.