Skip to content
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

Gradle 2.9 regression - Could not find property 'binaries' on project ':base' #568

Open
brunobowden opened this issue Nov 10, 2015 · 9 comments
Milestone

Comments

@brunobowden
Copy link
Contributor

This works fine with Gradle 2.8 but fails with with 2.9-rc-1. It appears to be an intentional breakage that you'll have to deal with:

The binaries container is no longer bridged into the regular plugin space, and is now only visible to rules via model. The binaries project extension has been removed.

https://docs.gradle.org/2.9/release-notes#the-binaries-container-is-no-longer-accessible-as-a-project-extension

Caused by: groovy.lang.MissingPropertyException: Could not find property 'binaries' on project ':base'.
at org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:97)
at org.gradle.api.internal.project.DefaultProject_Decorated.getProperty(Unknown Source)
at com.github.j2objccontrib.j2objcgradle.NativeCompilation$_apply_closure2.doCall(NativeCompilation.groovy:258)
at com.github.j2objccontrib.j2objcgradle.NativeCompilation.apply(NativeCompilation.groovy:127)
at com.github.j2objccontrib.j2objcgradle.J2objcConfig.configureNativeCompilation(J2objcConfig.groovy:827)
at com.github.j2objccontrib.j2objcgradle.J2objcConfig.finalConfigure(J2objcConfig.groovy:731)
at build_15mxmbvxw4tw5xblism0ohhl9$_run_closure6.doCall(/Users/brunobowden/dev/taptap/base/build.gradle:84)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145)
at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69)
at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:207)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:150)
at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
at build_15mxmbvxw4tw5xblism0ohhl9.run(/Users/brunobowden/dev/taptap/base/build.gradle:56)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
... 95 more

@brunobowden brunobowden added this to the 1.0 Release milestone Nov 10, 2015
@brunobowden
Copy link
Contributor Author

cc @eapache

@advayDev1
Copy link
Contributor

@brunobowden we're now at the point of no return i think.
we have to finish that discussion we put off last Oct/Nov about fully migrating to the "3.0" way of doing things, using Models and Rules for all of the plugin. That is a substantial rewrite that I don't believe either of us have time to do right now

@brunobowden
Copy link
Contributor Author

@advayDev1 - yeah, this is unfortunate. I would like to get some others involved to help out on something like this. It'll be a while before 2.9 is common place, so we'll defer the discussion for now.

Here's the updated link for the 2.9 release notes: https://docs.gradle.org/2.9/release-notes#the-binaries-container-is-no-longer-accessible-as-a-project-extension

@brunobowden brunobowden changed the title Could not find property 'binaries' on project ':base' - Gradle 2.9-rc-1 regression Gradle 2.9 regression - Could not find property 'binaries' on project ':base' Jan 10, 2016
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 10, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 10, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 10, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 12, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581 (Gradle 2.9 unsupported message)
- Fixes j2objc-contrib#585 (Gradle deadlock on unsupported version)
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 12, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581 (Gradle 2.9 unsupported message)
- Fixes j2objc-contrib#585 (Gradle deadlock on unsupported version)
brunobowden added a commit to brunobowden/j2objc-gradle that referenced this issue Jan 12, 2016
- Throws explanatory error for gradle version 2.9 or later
- Meant to be temporary until j2objc-contrib#568 is fixed
- Fixes j2objc-contrib#581 (Gradle 2.9 unsupported message)
- Fixes j2objc-contrib#585 (Gradle deadlock on unsupported version)
@ghost
Copy link

ghost commented Jun 17, 2016

any updates on supporting gradle 2.9+?

@patjackson52
Copy link

This is issue is probably a show stopper for people trying out j2objc. Android developers are using more recent versions of gradle

@palindrajit
Copy link

any update on supporting on current release. Is there any workaround? The workaround which is available #621 is not working with latest android plugin and gradle plugin 1.0.2

@kpgalligan
Copy link

Adding this:

System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'

to the root build file, and changing the gradle wrapper to 2.8 still works.

gradle/wrapper/gradle-wrapper.properties

Add/change

distributionUrl=https://services.gradle.org/distributions/gradle-2.8-all.zip

@andreas-
Copy link

+1

1 similar comment
@Bkrickl
Copy link

Bkrickl commented Nov 25, 2016

+1

@advayDev1 advayDev1 removed their assignment Sep 20, 2020
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

No branches or pull requests

7 participants