Skip to content

Conversation

@daphil19
Copy link
Contributor

@daphil19 daphil19 commented Feb 2, 2021

Gradle users can specify where gradle lives via $GRADLE_USER_HOME. When this is done, the classpath resolver doesn't check the location set by the env var, but only the default location. This results in a failed build if kotlin is not on $PATH.

This PR fixes that by checking for $GRADLE_USER_HOME first, and falling back to the default ~/.gradle if it's not set.

To see the change in action, open the base repo in gitpod and run ./gradlew :server:build. It should fail.

To see the fix in action, open this repo in gitpod and run ./gradlew :server:build. It should succeed.

This closes #254

@fwcd fwcd merged commit d3756bf into fwcd:master Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolving artifacts via gradle should respect $GRADLE_USER_HOME

2 participants