Enable Gradle isolated projects

This commit is contained in:
AntsyLich
2026-09-20 04:58:39 +06:00
parent 12fbb13df5
commit 427e105840
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ if (Config.includeTelemetry) {
}
}
val keystorePropertiesFile = rootProject.file("keystore.properties")
val keystorePropertiesFile = layout.settingsDirectory.file("keystore.properties").asFile
android {
namespace = "eu.kanade.tachiyomi"
+1 -2
View File
@@ -4,8 +4,7 @@ kotlin.code.style=official
# Configuration should be synced with [/gradle/build-logic/gradle.properties]
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configureondemand=true
org.gradle.isolated-projects=true
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.tooling.parallel=true
+1 -2
View File
@@ -3,8 +3,7 @@
# Gradle properties are not passed to included builds
# https://github.com/gradle/gradle/issues/2534
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configureondemand=true
org.gradle.isolated-projects=true
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.tooling.parallel=true
@@ -36,7 +36,7 @@ fun Project.getCurrentTime(): Provider<String> {
}
private fun Project.git(vararg command: String, default: Provider<String>): Provider<Pair<String, Boolean>> {
val workTree = rootProject.layout.projectDirectory
val workTree = layout.settingsDirectory
return providers.of(GitValueSource::class.java) {
parameters.command.set(listOf("git", *command))
parameters.workTree.set(workTree)