-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADR] Upgrade gradle version to 7.3.0
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 10. upgrade gradle build to 7.3.0 | ||
|
||
Date: 2023-10-19 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
- `com.android.tools.build:gradle:7.2.2` install NDK v21.4.7075529 by default. | ||
- but [super_clipboard](https://pub.dev/packages/super_clipboard) required NDK v23 | ||
- upgrade to `com.android.tools.build:gradle:7.3.0` | ||
|
||
## Decision | ||
|
||
- but `com.android.tools.build:gradle:7.3.0` need `org.jetbrains.kotlin:kotlin-gradle-plugin` upgrade to version > `1.4.32` | ||
- so we use `resolutionStrategy` to override `kotlin-gradle-plugin` for all conflict dependencies | ||
- [resolutionStrategy](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html) | ||
```agsl | ||
for (p in project.subprojects) { | ||
p.buildscript.configurations.classpath.resolutionStrategy { | ||
force "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
} | ||
} | ||
``` | ||
|
||
## Consequences | ||
|
||
Build Android success |