[skip ci] chore: Address deprecation warnings from gradle 8.5+ (#2637)
This commit is contained in:
parent
a70b066a82
commit
03c6a5e8ae
@ -25,7 +25,7 @@ android {
|
|||||||
versionCode extVersionCode
|
versionCode extVersionCode
|
||||||
versionName project.ext.properties.getOrDefault("libVersion", "13") + ".$extVersionCode"
|
versionName project.ext.properties.getOrDefault("libVersion", "13") + ".$extVersionCode"
|
||||||
base {
|
base {
|
||||||
archivesBaseName = "aniyomi-$pkgNameSuffix-v$versionName"
|
archivesName = "aniyomi-$pkgNameSuffix-v$versionName"
|
||||||
}
|
}
|
||||||
def readmes = project.projectDir.listFiles({ File file ->
|
def readmes = project.projectDir.listFiles({ File file ->
|
||||||
file.name.equals("README.md") ||
|
file.name.equals("README.md") ||
|
||||||
|
@ -23,6 +23,20 @@ File(rootDir, "lib").eachDir {
|
|||||||
project(":lib-$libName").projectDir = File("lib/$libName")
|
project(":lib-$libName").projectDir = File("lib/$libName")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix deprecation warnings with Gradle 8.5+.
|
||||||
|
// See https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#deprecated_missing_project_directory
|
||||||
|
listOf(
|
||||||
|
":extensions" to "$rootDir/gradle", // Temporary workaround.
|
||||||
|
":extensions:individual" to "$rootDir/src",
|
||||||
|
":extensions:multisrc" to "$rootDir/generated-src",
|
||||||
|
).forEach { (name, path) ->
|
||||||
|
val projectDir = file(path)
|
||||||
|
if (projectDir.exists()) {
|
||||||
|
include(name)
|
||||||
|
project(name).projectDir = projectDir
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (System.getenv("CI") == null || System.getenv("CI_MODULE_GEN") == "true") {
|
if (System.getenv("CI") == null || System.getenv("CI_MODULE_GEN") == "true") {
|
||||||
// Local development (full project build)
|
// Local development (full project build)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user