use of org.jetbrains.plugins.gradle.settings.GradleProjectSettings in project android by JetBrains.
the class GradleDistributionCleanUpTaskTest method setGradleLocalDistribution.
private void setGradleLocalDistribution(@NotNull String gradleLocalDistributionPath) {
GradleProjectSettings settings = doGetGradleProjectSettings();
settings.setDistributionType(LOCAL);
settings.setGradleHome(gradleLocalDistributionPath);
}
use of org.jetbrains.plugins.gradle.settings.GradleProjectSettings in project android by JetBrains.
the class GradleSyncIntegrationTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
Project project = getProject();
GradleProjectSettings projectSettings = new GradleProjectSettings();
projectSettings.setDistributionType(DEFAULT_WRAPPED);
GradleSettings.getInstance(project).setLinkedProjectsSettings(Collections.singletonList(projectSettings));
}
use of org.jetbrains.plugins.gradle.settings.GradleProjectSettings in project android by JetBrains.
the class IdeFrameFixture method useLocalGradleDistribution.
@NotNull
public IdeFrameFixture useLocalGradleDistribution(@NotNull String gradleHome) {
GradleProjectSettings settings = getGradleSettings();
settings.setDistributionType(LOCAL);
settings.setGradleHome(gradleHome);
return this;
}
use of org.jetbrains.plugins.gradle.settings.GradleProjectSettings in project android by JetBrains.
the class GradleVersionsTest method testReadGradleVersionFromWrapper.
public void testReadGradleVersionFromWrapper() throws Exception {
loadSimpleApplication();
Project project = getProject();
simulateGradleSyncStateReturnNullGradleVersion();
GradleProjectSettings settings = new GradleProjectSettings();
settings.setDistributionType(DEFAULT_WRAPPED);
when(mySettingsFinder.findGradleProjectSettings(any())).thenReturn(settings);
String expected = getGradleVersionFromWrapper();
GradleVersion gradleVersion = myGradleVersions.getGradleVersion(project);
assertNotNull(gradleVersion);
assertEquals(expected, gradleVersion.toString());
}
Aggregations