Skip to content

Commit 3400c73

Browse files
committed
support quarkus gradle plugin
1 parent 839da4d commit 3400c73

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/execution/RunConfigurationInstrumentationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.digma.intellij.plugin.buildsystem.BuildSystem
88
interface RunConfigurationInstrumentationService {
99

1010
/**
11-
* not an accurate method because there is no params to resolve the module.
11+
* not an accurate method because there is no params to resolve the module or environment variables.
1212
* should be used in combination with other conditions or when matching is not supposed to be accurate.
1313
* do not use to attach an instrumentation handler to configuration, use fot other needs when
1414
* the matching doesn't need to be accurate, like for reporting unhandled configuration.

jvm-common/src/main/kotlin/org/digma/intellij/plugin/idea/execution/services/QuarkusRunConfigurationInstrumentationService.kt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,21 @@ class QuarkusRunConfigurationInstrumentationService : BaseJvmRunConfigurationIns
4949

5050

5151
private fun isGradle(configuration: RunConfigurationBase<*>): Boolean {
52-
//TODO: support Quarkus with gradle
53-
return false
52+
return isGradleConfiguration(configuration) && getGradleTasks(configuration).any {
53+
it == "quarkusDev" ||
54+
it == "quarkusRun" ||
55+
it.contains(":quarkusDev") ||
56+
it.contains(":quarkusRun")
57+
}
5458
}
5559

5660
private fun isGradleTest(configuration: RunConfigurationBase<*>): Boolean {
57-
//TODO: support Quarkus with gradle
58-
return false
61+
return isGradleConfiguration(configuration) && getGradleTasks(configuration).any {
62+
it == "quarkusIntTest" ||
63+
it == "quarkusTest" ||
64+
it.contains(":quarkusIntTest") ||
65+
it.contains(":quarkusTest")
66+
}
5967
}
6068

6169
private fun isMaven(configuration: RunConfigurationBase<*>): Boolean {

settings.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ pluginManagement {
2121
"p231" -> "2023.2.0"
2222
"p232" -> "2023.2.2"
2323
"p233", "latest" -> "2023.3.2"
24-
"p241", "eap" -> "2023.3.2"
24+
"p241" -> "2023.3.2"
25+
"p242", "eap" -> "2023.3.2"
2526
else -> "2023.2.0"
2627
}
2728
} else {

0 commit comments

Comments
 (0)