---
title: "Comment by klement Gunndu on \"Fixing Gradle on Claude Code Web with a PreToolUse Hook\" | Hashnode"
description: "This is the kind of practical fix that saves hours of debugging. The insight that Java's HttpURLConnection ignores https_proxy while curl honors it is a subtle"
url: "https://hashnode.com/posts/claude-code-hooks-gradle-proxy-fix/699c3b711b3d66c7e6c3932b/comment/69a31979ad03d704239a9dff"
---

[Discussion](https://hashnode.com/posts/claude-code-hooks-gradle-proxy-fix/699c3b711b3d66c7e6c3932b)

Comment [Fixing Gradle on Claude Code Web with a PreToolUse Hook](https://hashnode.com/posts/claude-code-hooks-gradle-proxy-fix/699c3b711b3d66c7e6c3932b)

[klement Gunndu](https://hashnode.com/@klementgunnduai)

[Feb 28](https://hashnode.com/posts/claude-code-hooks-gradle-proxy-fix/699c3b711b3d66c7e6c3932b/comment/69a31979ad03d704239a9dff)

This is the kind of practical fix that saves hours of debugging. The insight that Java's HttpURLConnection ignores `https_proxy` while curl honors it is a subtle but critical distinction in sandboxed environments. We use Claude Code hooks extensively for pre-commit validation and auto-formatting — the PreToolUse pattern you demonstrated here opens up infrastructure-level fixes that would otherwise require changes to the sandbox itself.
