Skip to content

Commit 2425738

Browse files
committed
Merge remote-tracking branch 'origin/master' into fix/failing_6_8_compat_test
2 parents 703c991 + 103279f commit 2425738

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
integrationTests:
3232
name: Integration Tests
33-
needs: gradleValidation
33+
needs: [ gradleValidation, unitTests ]
3434
uses: ./.github/workflows/reusable-integrationTests.yml
3535

3636
# integrationTestsEAP:

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
integrationTests:
2929
if: ${{ !inputs.skipTests }}
3030
name: Integration Tests
31-
needs: gradleValidation
31+
needs: [ gradleValidation, unitTests ]
3232
uses: ./.github/workflows/reusable-integrationTests.yml
3333

3434
# integrationTestsEAP:

src/main/kotlin/org/jetbrains/intellij/tasks/VerifyPluginConfigurationTask.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ abstract class VerifyPluginConfigurationTask @Inject constructor(
110110
val kotlinApiVersion = kotlinApiVersion.orNull?.let(Version::parse)
111111
val kotlinLanguageVersion = kotlinLanguageVersion.orNull?.let(Version::parse)
112112
val platformKotlinLanguageVersion = platformBuildVersion.let(::getPlatformKotlinVersion)
113-
val pluginVerifierDownloadDir = pluginVerifierDownloadDir.get()
114-
val oldPluginVerifierDownloadDir = providers.systemProperty("user.home").map { "$it/.pluginVerifier/ides" }.get()
113+
val pluginVerifierDownloadPath = pluginVerifierDownloadDir.get().let(Path::of).toAbsolutePath()
114+
val oldPluginVerifierDownloadPath = providers.systemProperty("user.home").map { "$it/.pluginVerifier/ides" }.get().let(Path::of).toAbsolutePath()
115115

116116
sequence {
117117
pluginXmlFiles.get().mapNotNull { parsePluginXml(it, context) }.forEach { plugin ->
@@ -148,10 +148,13 @@ abstract class VerifyPluginConfigurationTask @Inject constructor(
148148
if (kotlinPluginAvailable.get() && kotlinStdlibDefaultDependency.orNull == null) {
149149
yield("The dependency on the Kotlin Standard Library (stdlib) is automatically added when using the Gradle Kotlin plugin and may conflict with the version provided with the IntelliJ Platform, see: https://jb.gg/intellij-platform-kotlin-stdlib")
150150
}
151-
if (Path.of(oldPluginVerifierDownloadDir).run {
152-
toString() != pluginVerifierDownloadDir && exists() && listFiles().isNotEmpty()
153-
}) {
154-
yield("The Plugin Verifier download directory is set to $pluginVerifierDownloadDir, but downloaded IDEs were also found in $oldPluginVerifierDownloadDir, see: https://jb.gg/intellij-platform-plugin-verifier-old-download-dir")
151+
152+
if (
153+
pluginVerifierDownloadPath == oldPluginVerifierDownloadPath
154+
&& oldPluginVerifierDownloadPath.exists()
155+
&& oldPluginVerifierDownloadPath.listFiles().isNotEmpty()
156+
) {
157+
yield("The Plugin Verifier download directory is set to $pluginVerifierDownloadPath, but downloaded IDEs were also found in $oldPluginVerifierDownloadPath, see: https://jb.gg/intellij-platform-plugin-verifier-old-download-dir")
155158
}
156159
}.joinToString("\n") { "- $it" }.takeIf(String::isNotEmpty)?.let {
157160
warn(

src/main/kotlin/org/jetbrains/intellij/utils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,10 @@ fun warn(logCategory: String? = null, message: String, e: Throwable? = null) = l
207207
fun info(logCategory: String? = null, message: String, e: Throwable? = null) = log(LogLevel.INFO, logCategory, message, e)
208208
fun debug(logCategory: String? = null, message: String, e: Throwable? = null) = log(LogLevel.DEBUG, logCategory, message, e)
209209

210+
private val logger = Logging.getLogger(IntelliJPlugin::class.java)
211+
210212
private fun log(level: LogLevel, logCategory: String?, message: String, e: Throwable?) {
211213
val category = "gradle-intellij-plugin ${logCategory.orEmpty()}".trim()
212-
val logger = Logging.getLogger(IntelliJPlugin::class.java)
213214
if (e != null && level != LogLevel.ERROR && !logger.isDebugEnabled) {
214215
logger.log(level, "[$category] $message. Run with --debug option to get more log output.")
215216
} else {

0 commit comments

Comments
 (0)