0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00
Commit Graph

2 Commits

Author SHA1 Message Date
lukstbit
6b65c45386 Use plugins block to declare the plugins used
See https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block
The plugins that are to be used in different modules are added in the
top level build file with apply "false"(doesn't make sense to apply
them on the root project). Then the project modules, from the plugins
already available on the classpath, actually apply the ones they need.

Ktlint plugin was applied directly to all subprojects(initially it
was added through allprojects {} but it doesn't make sense to add it
to the root project as it doesn't contain source code, so
subprojects{} was used instead).

The amazonappstorepublisher plugin also required some custom
configuration as we need the latest versions which are not available
in mavenCentral() but can be fetched from jitpack.io.
2023-08-31 20:52:04 -05:00
lukstbit
529a19b4a0 Configure plugins resolution in settings.gradle
Change was done to improve plugin usage, see
https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_management.

This PR also moves settings.gradle to kotlin dsl to use modern
practices in build configuration. See:
https://android-developers.googleblog.com/2023/04/kotlin-dsl-is-now-default-for-new-gradle-builds.html
2023-08-31 20:52:04 -05:00