objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Plugin: update to new Transform API

Open andrew-ld opened this issue 3 years ago • 4 comments

WARNING:API 'android.registerTransform' is obsolete.
It will be removed in version 8.0 of the Android Gradle plugin.
The Transform API is removed to improve build performance. Projects that use the
Transform API force the Android Gradle plugin to use a less optimized flow for the
build that can result in large regressions in build times. It’s also difficult to
use the Transform API and combine it with other Gradle features; the replacement
APIs aim to make it easier to extend the build without introducing performance or
correctness issues.

this message is visible using objectbox-gradle-plugin 3.1.2 on android gradle plugin 7.2.0 running on gradle 7.3.3

andrew-ld avatar May 26 '22 18:05 andrew-ld

Thanks for reporting! We are already aware of this.

Note that the transformer continues to work with Android Plugin 7.2.0 (except for #1077).

greenrobot-team avatar May 30 '22 06:05 greenrobot-team

What are we supposed to do when we see this weird warning?

AndroidDeveloperLB avatar Jul 03 '22 10:07 AndroidDeveloperLB

@AndroidDeveloperLB Nothing at the moment. It's a deprecation warning so everything should work as expected (again except for #1077).

We'll need to ship an updated Gradle plugin that uses the new APIs for this warning to go away.

greenrobot-team avatar Jul 04 '22 06:07 greenrobot-team

@greenrobot-team I mean in general, whether we use the current repository or not. I can see it on projects that don't use it.

AndroidDeveloperLB avatar Jul 04 '22 06:07 AndroidDeveloperLB

This is resolved with the just released version 3.3.1 which uses the new transform APIs.

https://github.com/objectbox/objectbox-java/releases/tag/V3.3.1

greenrobot-team avatar Sep 06 '22 10:09 greenrobot-team