Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ dependencies {
// Documentation on the default target platform methods:
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#default-target-platforms
// Android Studio versions can be found at: https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
androidStudio(ideaVersion)
try {
androidStudio(ideaVersion)
} catch (e: Exception) {
throw GradleException(
"Failed to resolve Android Studio / IDEA download URL. This is likely due to a network issue blocking the download URL. Please check your internet connection or VPN.",
e
)
}
testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.Starter, configurationName = "integrationImplementation")
testFramework(TestFrameworkType.JUnit5, configurationName = "integrationImplementation")
Expand Down Expand Up @@ -344,7 +351,16 @@ tasks {
maxHeapSize = "4g"

systemProperty("path.to.build.plugin", buildPlugin.get().archiveFile.get().asFile.absolutePath)
systemProperty("idea.home.path", prepareTestSandbox.get().getDestinationDir().parentFile.absolutePath)
systemProperty("idea.home.path", providers.provider {
try {
prepareTestSandbox.get().destinationDir.parentFile.absolutePath
} catch (e: Exception) {
throw GradleException(
"Failed to resolve Android Studio/ IDEA path. This is likely due to a network issue blocking the download URL. Please check your internet connection or VPN.",
e
)
}
})
systemProperty(
"allure.results.directory", project.layout.buildDirectory.get().asFile.absolutePath + "/allure-results"
)
Expand Down