Hello,
I’m working on a project and after 6 weeks I get suddenly the next error:
> Build file 'C:\Users\...\...\projecten\...\dev\...\code\build.gradle.kts' line: 6
>
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'C:\Users\nkamp\working_dir\projecten\rws\dev\gir-2.0_1386\code\build.gradle.kts' line: 6
>
> * What went wrong:
> Plugin [id: 'org.sonarqube', version: '3.0', apply: false] was not found in any of the following sources:
>
> - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
> - Plugin Repositories (could not resolve plugin artifact 'org.sonarqube:org.sonarqube.gradle.plugin:3.0')
> Searched in the following repositories:
> MavenRepo
> Gradle Central Plugin Repository
>
> * 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.
* Get more help at https://help.gradle.org
CONFIGURE FAILED in 8s
And this is the code build.gradle.kts:
import dev.jacomet.gradle.plugins.logging.extension.LoggingCapabilitiesExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.sonarqube.gradle.SonarQubeExtension
@Suppress("DSL_SCOPE_VIOLATION")
plugins { // this is line 6
base
kotlin("jvm") version libs.versions.kotlin
kotlin("kapt") version libs.versions.kotlin
alias(libs.plugins.sonarqube) apply false
alias(libs.plugins.logging.capabilities) apply false
alias(libs.plugins.shadow) apply false
jacoco
}
....
In the gradle tab on the right side bar is the message “Nothing to show”
I have:
- deleted .m2 directory
- deleted .gradle directory in my users directory, roaming and local directories
- Installed IntelliJ again.
What can be the reason? How can I find out why is this suddenly hapening?