Skip to content

Commit fc8d07b

Browse files
committed
add gradle file for groovy version of the gradle build script
1 parent 3601d49 commit fc8d07b

File tree

1 file changed

+4
-2
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/utils

1 file changed

+4
-2
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/utils/UTGChatUtil.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ fun runBuildOrTestCommand(
9999
// Find the nearest Gradle root directory
100100
var packageRoot: File? = testFileAbsolutePath.parentFile
101101
while (packageRoot != null && packageRoot != projectRoot) {
102-
if (File(packageRoot, "settings.gradle.kts").exists() || File(packageRoot, "build.gradle.kts").exists()) {
103-
break // top when we find a valid Gradle project root
102+
if (File(packageRoot, "settings.gradle.kts").exists() || File(packageRoot, "build.gradle.kts").exists() ||
103+
File(packageRoot, "settings.gradle").exists() || File(packageRoot, "build.gradle").exists()
104+
) {
105+
break // Stop when we find a valid Gradle project root
104106
}
105107
packageRoot = packageRoot.parentFile
106108
}

0 commit comments

Comments
 (0)