mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Enable Gradle isolated projects
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user