Skip to content

Conversation

@brunobowden
Copy link
Contributor

  • 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 #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'

@brunobowden
Copy link
Contributor Author

@advayDev1, @confile - This is an important change that should allow use of the plugins {...} syntax. I've tested a number of error scenarios, e.g. the plugin not loaded and it gives an intelligent error message.

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.

@confile
Copy link
Contributor

confile commented Jun 20, 2015

@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.

@confile
Copy link
Contributor

confile commented Jun 20, 2015

LGTM

@brunobowden
Copy link
Contributor Author

@confile - making you happy is a good path to making many other people
happy as well

On Sat, Jun 20, 2015 at 9:55 AM Michael Gorski notifications@github.com
wrote:

LGTM


Reply to this email directly or view it on GitHub
#201 (comment)
.

@confile
Copy link
Contributor

confile commented Jun 20, 2015

@brunobowden Thanks!

@advayDev1
Copy link
Contributor

LGTM. There's some odd smart-quotes thing going in your comment. Hopefully that isn't in the code too:

“0.3.0-alpha"

@advayDev1 advayDev1 self-assigned this Jun 20, 2015
@advayDev1 advayDev1 modified the milestone: Beta Release Jun 20, 2015
@brunobowden brunobowden force-pushed the ordering branch 2 times, most recently from 9beb4c6 to 8b8894a Compare June 20, 2015 23:15
@brunobowden
Copy link
Contributor Author

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'
@brunobowden
Copy link
Contributor Author

Fixes #130

... I'll try being confident ;-) Verification later tonight.

brunobowden added a commit that referenced this pull request Jun 20, 2015
Fix `plugins {...}` syntax by allowing reordering of plugin loading
@brunobowden brunobowden merged commit 20e20ec into j2objc-contrib:master Jun 20, 2015
@advayDev1 advayDev1 modified the milestones: Beta Release, 0.3 Release Jun 25, 2015
@brunobowden brunobowden deleted the ordering branch July 1, 2015 22:07
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

Successfully merging this pull request may close these issues.

fix plugins {} syntax - java plugin ordering

3 participants