Heath Borders
12/08/2022, 5:29 PM./gradlew clean
./gradlew --build-cache compileJava
we get:
> Task : compileJava
Could not load entry c8e5e9b6464a59e66cb37b40bdd756f5 from remote build cache: Loading entry from '<https://gradle-enterprise.example.com/cache/c8e5e9b6464a59e66cb37b40bdd756f5>' response
status 403: Forbidden
And the gradle build scan says:
The build cache was globally disabled in the build. Please consider enabling build caching.
I’ve attached our build.gradle and settings.gradle that we’re using to test. What are we missing?Heath Borders
12/08/2022, 5:30 PMVampire
12/08/2022, 5:36 PM403 ForbiddenSo I guess you tried to access with a user that does not have the right to
Eric Haag
12/08/2022, 5:43 PMpush = true defined in the settings.gradle. Granted, the error you are seeing seems to be a read, but it is something to look into.
2. It looks like there is more than one configuration defined for remote build cache in the settings.gradle file. With Gradle Enterprise, you only need the block that uses gradleEnterprise.buildCache.
3. In the build.gradle file you have a block for buildScan. I don't recognize this block, but it's contents look more like what you should be defining in the gradleEnterprise block of the settings.gradle file.Vampire
12/08/2022, 5:50 PMbuildScan block is from ancient versions of the Gradle Enterprise plugin.
If you go to <http://scans.gradle.com|scans.gradle.com> and select Gradle < 4.3 you still see it there.Eric Haag
12/08/2022, 5:51 PMHeath Borders
12/14/2022, 8:06 PM