Set JAVA and ANDROID_HOME when fetching Gradle models
In BaseGradleIT
This commit is contained in:
committed by
Sergey Igushkin
parent
8cb03fcdec
commit
52990c9eb1
+2
-1
@@ -286,7 +286,8 @@ abstract class BaseGradleIT {
|
||||
val options = defaultBuildOptions()
|
||||
val arguments = mutableListOf("-Pkotlin_version=${options.kotlinVersion}")
|
||||
options.androidGradlePluginVersion?.let { arguments.add("-Pandroid_tools_version=$it") }
|
||||
val model = connection.action(ModelFetcherBuildAction(modelType)).withArguments(arguments).run()
|
||||
val env = createEnvironmentVariablesMap(options)
|
||||
val model = connection.action(ModelFetcherBuildAction(modelType)).withArguments(arguments).setEnvironmentVariables(env).run()
|
||||
connection.close()
|
||||
return model
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user