faster gradle ...

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk
2025-07-14 09:57:40 +02:00
parent 048f10e8f6
commit 964df5a0cf
3 changed files with 14 additions and 0 deletions

View File

@ -441,7 +441,18 @@ configurations.configureEach {
}
}
// Run the compiler as a separate process
tasks.withType(JavaCompile).configureEach {
options.fork = true
// Enable Incremental Compilation
options.incremental = true
}
tasks.withType(Test).configureEach {
// Run tests in parallel
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
// increased logging for tests
testLogging {
events "passed", "skipped", "failed"

View File

@ -19,6 +19,8 @@ org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
kapt.incremental.apt=true
org.gradle.daemon=true
org.gradle.configuration-cache=true
# Needed for local libs
# org.gradle.dependency.verification=lenient

View File

@ -3,6 +3,7 @@
<configuration>
<verify-metadata>true</verify-metadata>
<verify-signatures>true</verify-signatures>
<keyring-format>armored</keyring-format>
<trusted-artifacts>
<trust group="com.android.tools.build" name="aapt2" version="8.9.2-12782657" reason="ships OS specific artifacts (win/linux) - temp global trust"/>
<trust group="com.fasterxml.jackson" name="jackson-base" version="2.14.2" reason="no keys available, no pom artifact to create a checksum"/>