saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
516 stars 39 forks source link

Plugin not found error #1876

Closed ashtanko closed 6 months ago

ashtanko commented 6 months ago

Getting error when syncing up a gradle project:

Plugin [id: 'com.saveourtool.diktat.diktat-gradle-plugin', version: '1.2.5'] was not found in any of the following sources the code:

@Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369
plugins {
    id("com.saveourtool.diktat.diktat-gradle-plugin") version "1.2.5"
}

repositories {
    mavenCentral()
    maven { url = uri("https://repo.kotlin.link") }
    gradlePluginPortal()
    maven("https://plugins.gradle.org/m2/")
}

Expected behavior

Observed behavior

Steps to Reproduce

Environment information

nulls commented 6 months ago

hi @ashtanko,

We have changed group id and gradle id for plugin, but didn't change the documentation yet.

Can you please try the new version 2.0.0?

plugins {
    id("com.saveourtool.diktat") version "2.0.0"
}
ashtanko commented 6 months ago

hi @ashtanko,

We have changed group id and gradle id for plugin, but didn't change the documentation yet.

Can you please try the new version 2.0.0?

plugins {
    id("com.saveourtool.diktat") version "2.0.0"
}

Hi @nulls, this variant is working, thanks for the clarification!