Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not found issue with new plugin configuration method in gradle #338

Open
Venkat-juju opened this issue May 8, 2023 · 3 comments
Open

Comments

@Venkat-juju
Copy link

Expected behaviour

Plugin should be downloaded, sync & build successfully

Actual behaviour

Getting plugin not found exception while sync

Steps to reproduce

I'm getting Plugin not found exception with the new method of applying plugins while gradle sync:

Issue
image

my settings.gradle file:

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
    plugins {
        ... some other plugins....
        id 'shot' version '5.14.1'
    }
}

my module level build.gradle file:

plugins {
    id 'shot'
}

I'm not sure if this is the issue with my configuration or plugin side issue. but it works fine for other plugins. Kindly help!

Version of the library

5.14.1

@renetik
Copy link

renetik commented May 16, 2023

Same issue here..

@ParohyGr
Copy link

Same

@nicholaslythall
Copy link

I don't believe the plugin is currently published to the Gradle plugin repository.
You can work around this in the meantime by adding the following to your settings.gradle.kts file (apologies, I don't have a groovy version on hand)

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }

    // Manual resolution for plugins that have not yet been published to the gradle plugin portal
    resolutionStrategy {
        eachPlugin {
            when (requested.id.id) {
                "shot" -> useModule(
                    "com.karumi:shot:${requested.version}"
                )
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants