-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Update readme to show how to configure using new gradle plugin syntax #41
Comments
I've figured it out how to make it work in gradle kotlin dsl: You can apply the plugin with:
I added these imports to the file:
And here is what I did to configure:
This is hampered by the fact that for target configs you are using Closure, which is Groovy specific and requires the configureOf wrapper. As noted here you should use Action, not Closure. You did that on defaultConfig but not on targetConfigs. |
And I guess I should have tested that before posting as that fails with: |
OK, this works, but once again would be simplified by you switching to Action from Closure:
|
The readme shows the old way to configure the plugin using classpath inside buildscript, but since you are publishing in the gradle plugin portal there is no reason to so it that way. The readme should reflect the prefered way using the new plugin syntax.
The text was updated successfully, but these errors were encountered: