Closed malloth closed 2 years ago
Does writing "auto" not work?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem is that imports don't work in external Gradle scripts. That's why I recommend to switch to use strings instead of classes.
These used to be untyped, so I'm not going to go back. I would raise this issue with the Gradle folks since this is fundamentally an issue with bad external script support.
@malloth Did you find any workaround for this?
Describe the bug
We don't want to pollute our app's
build.gradle
with third party configs. Therefore we use external Gradle scripts which do all the third party plugin configuration. Because you are using classes instead of using simple strings, we are unable to set properties likeresolutionStrategy
. Please use strings instead of classes to support external Gradle files.How To Reproduce
$rootDir/gradle/playstore.gradle
script with the code below:build.gradle
like below:Caused by: java.lang.IllegalArgumentException: Cannot set the value of extension 'play' property 'resolutionStrategy' of type com.github.triplet.gradle.androidpublisher.ResolutionStrategy using an instance of type com.github.triplet.gradle.androidpublisher.ResolutionStrategy.
Versions
Tasks executed
N/A
Expected behavior
Users of this plugin should be able to set all properties - even if those are set in the external Gradle scripts.
Additional context (if a crash, provide stack trace)
N/A