Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying custom Gradle version/distro/install #3

Closed
eskatos opened this issue Jun 14, 2018 · 3 comments
Closed

Allow specifying custom Gradle version/distro/install #3

eskatos opened this issue Jun 14, 2018 · 3 comments

Comments

@eskatos
Copy link
Member

eskatos commented Jun 14, 2018

For testing purposes it would be useful to be able to use a custom Gradle version, distribution or installation.

The Gradle version or path to distro/install could be set as a test annotation or in the HOCON configuration file leveraging environment variable substitution or including a generated HOCON file.

@eskatos
Copy link
Member Author

eskatos commented Jun 14, 2018

It turns out that it's already possible to set a custom Gradle installation using system properties.

final String gradleHomeDirProperty = System.getProperty("integTest.gradleHomeDir");

Doing that on a Test task makes sense.

It would be good for this library to include a sample (inception!) to demonstrate how to do it.

@lacasseio
Copy link
Contributor

gradleConnector.useInstallation is ignored when samplesRootDir is configured.

@eriwen
Copy link
Contributor

eriwen commented Jun 28, 2018

This is documented in 6e34c61 and #9 has been merged.

@eriwen eriwen closed this as completed Jun 28, 2018
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

No branches or pull requests

3 participants