-
Notifications
You must be signed in to change notification settings - Fork 43
Fix plugins {...} syntax by allowing reordering of plugin loading
#201
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
Conversation
|
@advayDev1, @confile - This is an important change that should allow use of the Once this change is merged in, I'll spin a new version and verify that it fixes #130. After that, I'll work through some other bugs, including any issues that @confile is seeing. Then do another version and finally promote that in a few places. |
|
@brunobowden Sound great. I just have a look at it. Sorry for raising so many error but I still have a lot of problems with the new plugin. |
|
LGTM |
|
@confile - making you happy is a good path to making many other people On Sat, Jun 20, 2015 at 9:55 AM Michael Gorski notifications@github.com
|
|
@brunobowden Thanks! |
|
LGTM. There's some odd smart-quotes thing going in your comment. Hopefully that isn't in the code too: |
9beb4c6 to
8b8894a
Compare
|
Fixed weird smart quotes - probably from using the GitHub client, though I still find it useful for visual diffs. Added unit test for throw without Java plugin and TODO for test for no throw when Java plugin present. |
- Creates new `throwIfNoJavaPlugin(…)` method - Move the above check from `project.with` to `project.afterEvaluate` - Add another check in `srcDirs(…)` method as a double check This allows the `j2objc` to be loaded before the `java` plugin… but still produces meaningful errors if the `java` plugin is missing. This allows the use of the `plugins` syntax and should fix j2objc-contrib#130. This will need to be verified after a new plugin is published. Likely version 0.3.0. plugins { id "com.github.j2objccontrib.j2objcgradle" version "0.3.0-alpha" } apply 'java'
|
Fixes #130 ... I'll try being confident ;-) Verification later tonight. |
Fix `plugins {...}` syntax by allowing reordering of plugin loading
throwIfNoJavaPlugin(…)methodproject.withtoproject.afterEvaluatesrcDirs(…)method as a double checkThis allows the
j2objcto be loaded before thejavaplugin… butstill produces meaningful errors if the
javaplugin is missing. Thisallows the use of the
pluginssyntax and should fix #130.This will need to be verified after a new plugin is published. Likely
version 0.3.0.