trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting warning: "WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'."

eothein opened this issue · comments

After adding the composer-gradle-plugin I always get the following warning which is very annoying. Can this be updated?

WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
REASON: It is currently called from the following trace:
java.lang.Thread.getStackTrace(Thread.java:1556)
com.android.build.gradle.internal.errors.DeprecationReporterImpl.reportDeprecatedApi(DeprecationReporterImpl.kt:79)
com.android.build.gradle.internal.api.BaseVariantImpl.getAssemble(BaseVariantImpl.java:571)
com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated.getAssemble(null:-1)
com.trevjonez.composer.internal.ComposerApplicationPlugin.getApk(ComposerApplicationPlugin.kt:46)
com.trevjonez.composer.internal.ComposerApplicationPlugin.getApk(ComposerApplicationPlugin.kt:28)
com.trevjonez.composer.internal.ComposerBasePlugin.configureTaskDslLevelProperties(ComposerBasePlugin.kt:95)
com.trevjonez.composer.internal.ComposerBasePlugin.access$configureTaskDslLevelProperties(ComposerBasePlugin.kt:34)
com.trevjonez.composer.internal.ComposerBasePlugin$observeVariants$1$1.execute(ComposerBasePlugin.kt:80)
com.trevjonez.composer.internal.ComposerBasePlugin$observeVariants$1$1.execute(ComposerBasePlugin.kt:34)
org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:41)
org.gradle.api.internal.DefaultMutationGuard$2.execute(DefaultMutationGuard.java:41)

Kind regards

I believe it can now yes. There is some other pending work I may be able to get at today as well

work is done on my end planned for 0.11 release.