-
Notifications
You must be signed in to change notification settings - Fork 30
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
Applying the plugin from a script plugin #97
Comments
I do have a compile dependency on grgit. I presume the issue here is that I'm applying by ID, instead of by class name? |
That's my guess. |
I'm fairly certain that this is related to this. Perhaps, @bmuschko can clarify. I'm developing a kotlin plugin that applies reckon, by class (maybe this is the same as applying via a script plugin?), and configures the extension. This seemed to be working great in test projects and whatnot, where I was blindly applying the reckon plugin, and my plugin had an
Suddenly, started seeing:
I attempted to directly apply
Got the following output:
But, I still see the same error. |
So, I forked reckon and made the simple change of applying
I didn't dig much to see where this was coming from. But, it looks like there are a few bad checks going on and you can easily move to applying the plugin by class name. Should I create a pull request for this small change or leave it to you?
|
Gradle still doesn't support applying a plugin by ID from a script plugin. For example I have the following code in
release.gradle
:Internally, the reckon plugin tries to apply the plugin with ID
org.ajoberstar.grgit
. I believe this doesn't work in script plugins as you have to apply the plugin by type. The published metadata should probably include theorg.ajoberstar.grgit
dependency. It is a requirement for this plugin to work properly. Am I missing something?The text was updated successfully, but these errors were encountered: