Build: make Android build work behind restrictive proxies

- settings.gradle.kts: comment out the foojay-resolver-convention plugin.
  It tries to auto-download JDK toolchains from api.foojay.io, which fails
  with 503 behind restrictive proxies. Re-enable at home if you want
  auto-provisioning.
- app/build.gradle.kts: comment out jvmToolchain(17) for the same reason
  (triggers toolchain resolution -> foojay download). The build JDK 21
  plus compileOptions(source/target 17) achieves the same result locally.
- gradle-wrapper.properties: bump to gradle-9.6.1-all (matches the
  manually provided distribution).
- .gitignore: ignore .ssl-work/ (local corporate-CA truststore).
This commit is contained in:
Tronax 2026-08-06 11:43:03 +02:00
parent 729865be78
commit 85c790ed23
Signed by: Tronax
SSH key fingerprint: SHA256:2pKKXDZucWvaF/GzXNz0FY53EAO1YDLN80bqS+TTz/o
4 changed files with 11 additions and 4 deletions

View file

@ -58,7 +58,10 @@ room {
}
kotlin {
jvmToolchain(17)
// Use the JDK running Gradle instead of resolving a toolchain (avoids
// foojay-resolver downloads behind restrictive proxies). compileOptions
// above pins source/target to 17.
// jvmToolchain(17)
}
dependencies {

View file

@ -1,7 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
distributionSha256Sum=a17ddd85a26b6a7f5ddb71ff8b05fc5104c0202c6e64782429790c933686c806
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View file

@ -26,7 +26,11 @@ dependencyResolutionManagement {
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
// The foojay-resolver-convention auto-downloads JDK toolchains from
// api.foojay.io if a configured toolchain is missing. Behind restrictive
// proxies this download fails (503), so we rely on a locally installed
// JDK instead. Re-enable at home if you want auto-provisioning.
// id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
rootProject.name = "Mitbringsl"