suparngp / kotlin-multiplatform-projects

Kotlin Multiplatform projects.
https://kmpdocs.suparnatural.com
MIT License
131 stars 9 forks source link

Plugin with id 'com.suparnatural.kotlin.graphql' not found. #97

Open ImanX opened 3 years ago

ImanX commented 3 years ago

Describe the bug I migrated to maven central but throw plugin not found

Stacktrace org.gradle.internal.exceptions.LocationAwareException: Plugin with id 'com.suparnatural.kotlin.graphql' not found.

Version 1.0.12

Platforms affected:

Additional context Add any other context about the problem here.

suparngp commented 3 years ago

Looking at it.

suparngp commented 3 years ago

The plugin is published on the repository under artifact id graphql-plugin. Not sure if the plugin id needs to match with it somehow or if it requires some handling in the settings.gradle.

suparngp commented 3 years ago

I tried to get the plugin working with maven central but closing the staging repo throws an error that Project name, description is missing even though it is already present. My guess is that when you publish a plugin, two artifacts are published and may be the gradle.plugin artifact is missing something. I couldn't make it work like this tonight. Instead, I have submitted the plugin on gradle plugin repository and it is now under review. I ll try to work it out with maven central once again tomorrow. Any suggestions are welcome.

ImanX commented 3 years ago

In my view that's better push latest commit on repo. OK dude, actually imported as local in gradle.

ImanX commented 3 years ago

@suparngp I imported classpath as jar file but it has issue yet.

suparngp commented 3 years ago

Just got the email that the plugin is approved.

https://plugins.gradle.org/plugin/com.suparnatural.kotlin.plugins.graphql

Nailik commented 3 years ago

Just got the email that the plugin is approved.

https://plugins.gradle.org/plugin/com.suparnatural.kotlin.plugins.graphql

Please change the documentation that it's not "com.suparnatural.plugins.graphql" but "com.suparnatural.kotlin.plugins.graphql"

And (for me) it's only working with "com.suparnatural.kotlin:graphql-plugin:1.0.13" not with 1.0.12